Hi Thomas,

Thomas Chou wrote:
On 2007-02-12 Alon Bar-Lev introduced,
"[PATCH] Dynamic kernel command-line: common".
A new boot_command_line[] is used instead of saved_command_line[].

This patch follows up Alon's. Otherwise, it will crash with a null pointer access during boot when the sdram is located at 0x00000000.

Applied, thanks.

Regards
Greg



Signed-off-by: Thomas Chou <[EMAIL PROTECTED]>

diff --git a/linux-2.6.x/arch/nios2nommu/kernel/setup.c 
b/linux-2.6.x/arch/nios2nommu/kernel/setup.c
index d82acd0..4265e2f 100644
--- a/linux-2.6.x/arch/nios2nommu/kernel/setup.c
+++ b/linux-2.6.x/arch/nios2nommu/kernel/setup.c
@@ -211,8 +211,8 @@ void __init setup_arch(char **cmdline_p)
        /* Keep a copy of command line */
        *cmdline_p = &command_line[0];
- memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE);
-       saved_command_line[COMMAND_LINE_SIZE-1] = 0;
+       memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
+       boot_command_line[COMMAND_LINE_SIZE-1] = 0;
#ifdef DEBUG
        if (strlen(*cmdline_p))

--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to