Patchwork [U-Boot] image: Add support for Plan 9

login
register
mail settings
Submitter Steven Stallion
Date March 17, 2013, 8:12 a.m.
Message ID <CAGGHmKHC86VREnDU5DngqQ+bfs-r485aq9ptkJ8b+_Lg4ZoykA@mail.gmail.com>
Download mbox | patch
Permalink /patch/228286/
State Changes Requested
Delegated to: Wolfgang Denk
Headers show

Comments

Steven Stallion - March 17, 2013, 8:12 a.m.
From 2c6086251774e6dcdba8ee9a83c8b5cbe2a643f4 Mon Sep 17 00:00:00 2001

This patch adds support for Plan 9 to image.c; primarily a cosmetic change
when booting Plan 9 kernels using U-Boot.

---
 common/image.c  | 1 +
 include/image.h | 1 +
 2 files changed, 2 insertions(+)

Patch

diff --git a/common/image.c b/common/image.c
index 6afbb40..60c2127 100644
--- a/common/image.c
+++ b/common/image.c
@@ -108,6 +108,7 @@  static const table_entry_t uimage_os[] = {
 #endif
  { IH_OS_NETBSD, "netbsd", "NetBSD", },
  { IH_OS_OSE, "ose", "Enea OSE", },
+ { IH_OS_PLAN9, "plan9", "Plan 9", },
  { IH_OS_RTEMS, "rtems", "RTEMS", },
  { IH_OS_U_BOOT, "u-boot", "U-Boot", },
 #if defined(CONFIG_CMD_ELF) || defined(USE_HOSTCC)
diff --git a/include/image.h b/include/image.h
index 8e285f9..4ad0e6b 100644
--- a/include/image.h
+++ b/include/image.h
@@ -84,6 +84,7 @@ 
 #define IH_OS_UNITY 20 /* Unity OS */
 #define IH_OS_INTEGRITY 21 /* INTEGRITY */
 #define IH_OS_OSE 22 /* OSE */
+#define IH_OS_PLAN9 23 /* Plan 9 */

 /*
  * CPU Architecture Codes (supported by Linux)