diff options
author | Rod Whitby <rod@whitby.id.au> | 2007-01-28 01:56:10 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2007-01-28 01:56:10 +0000 |
commit | 7029d0f6cde4fc7be40fbb765ec64b78b6998d8b (patch) | |
tree | aaac9259a6613a1b46b40cebe81292a77e8da26b /packages/arm-kernel-shim/files/disable-commandline.patch | |
parent | 7186a6cbd89018cc88b89aed599678ff5b703bee (diff) |
arm-kernel-shim: New package designed to provide ATAGs to the kernel when the normal bootloader does not do it's job properly.
Diffstat (limited to 'packages/arm-kernel-shim/files/disable-commandline.patch')
-rw-r--r-- | packages/arm-kernel-shim/files/disable-commandline.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/arm-kernel-shim/files/disable-commandline.patch b/packages/arm-kernel-shim/files/disable-commandline.patch new file mode 100644 index 0000000000..d8c59f1a6b --- /dev/null +++ b/packages/arm-kernel-shim/files/disable-commandline.patch @@ -0,0 +1,28 @@ +--- arm-kernel-shim/main.c~ 2006-07-21 11:12:07.000000000 +0930 ++++ arm-kernel-shim/main.c 2007-01-28 11:56:35.000000000 +1030 +@@ -47,7 +47,9 @@ + + #define NAKED __attribute__((naked)) + ++#if defined (COMMANDLINE) + const char __attribute__((section(".rodata"))) cmdline[] = COMMANDLINE; ++#endif + + void NAKED __attribute__((section(".boot"))) boot (u32 r0, u32 r1, u32 r2) + { +@@ -82,6 +84,7 @@ + pv += H_SIZE(pv)*4; + #endif + ++#if defined (COMMANDLINE) + /* Command line */ + H_SIZE(pv) = tag_size(tag_cmdline) + (sizeof (cmdline)+1+3)/4; + H_TAG(pv) = ATAG_CMDLINE; +@@ -91,6 +94,7 @@ + P_CMDLINE(pv)->cmdline[i] = cmdline[i]; + } + pv += H_SIZE(pv)*4; ++#endif + + /* End */ + H_SIZE(pv) = 0; |