diff options
author | Michal Simek <monstr@monstr.eu> | 2009-06-22 06:31:55 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-07-27 01:39:54 -0400 |
commit | ea3fd1466f81a851452bf7f34ccb9b5058e4793c (patch) | |
tree | f691b023dee02e38a828b91f91904b1a0e07cffb /arch/microblaze/kernel | |
parent | a69cb8c4662dd0a7b01b32a9165b1a1697068f19 (diff) |
microblaze: Clear print messages for DTB passing via r7
It is necessary to zeroed r7 when r7 points to bad
dtb - this caused that we have correct messages
about compiled-in dtb or passing via r7
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/head.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/head.S b/arch/microblaze/kernel/head.S index 3c4d4a2803e2..e41c6ce2a7be 100644 --- a/arch/microblaze/kernel/head.S +++ b/arch/microblaze/kernel/head.S | |||
@@ -62,7 +62,10 @@ ENTRY(_start) | |||
62 | beqi r7, no_fdt_arg /* NULL pointer? don't copy */ | 62 | beqi r7, no_fdt_arg /* NULL pointer? don't copy */ |
63 | lw r11, r0, r7 /* Does r7 point to a */ | 63 | lw r11, r0, r7 /* Does r7 point to a */ |
64 | rsubi r11, r11, OF_DT_HEADER /* valid FDT? */ | 64 | rsubi r11, r11, OF_DT_HEADER /* valid FDT? */ |
65 | beqi r11, _prepare_copy_fdt | ||
66 | or r7, r0, r0 /* clear R7 when not valid DTB */ | ||
65 | bnei r11, no_fdt_arg /* No - get out of here */ | 67 | bnei r11, no_fdt_arg /* No - get out of here */ |
68 | _prepare_copy_fdt: | ||
66 | or r11, r0, r0 /* incremment */ | 69 | or r11, r0, r0 /* incremment */ |
67 | ori r4, r0, TOPHYS(_fdt_start) | 70 | ori r4, r0, TOPHYS(_fdt_start) |
68 | ori r3, r0, (0x4000 - 4) | 71 | ori r3, r0, (0x4000 - 4) |