* start/start.S: Clear environment pointer for bootcard.
This commit is contained in:
Joel Sherrill
2008-08-05 13:33:02 +00:00
parent 3f4eb31d56
commit aa05837816
4 changed files with 17 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2008-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* start/start.S: Clear environment pointer for bootcard.
2008-07-29 Chris Johns <chrisj@rtems.org> 2008-07-29 Chris Johns <chrisj@rtems.org>
* ide/pcmcia_ide.c: Updated to the libblock changes. * ide/pcmcia_ide.c: Updated to the libblock changes.

View File

@@ -470,8 +470,11 @@ skip_ROM_start:
bl PPC_HID0_wr /* Set DPM in HID0 */ bl PPC_HID0_wr /* Set DPM in HID0 */
/* clear arguments and do further init. in C (common for RAM/ROM startup) */ /* clear arguments and do further init. in C (common for RAM/ROM startup) */
xor r3, r3, r3
xor r4, r4, r4 /* Clear argc and argv */ /* Clear argc, argv and envp */
xor r3, r3, r3
xor r4, r4, r4
xor r5, r5, r5
bl SYM (boot_card) /* Call the first C routine */ bl SYM (boot_card) /* Call the first C routine */

View File

@@ -1,3 +1,7 @@
2008-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* start/start.S: Clear environment pointer for bootcard.
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Add capability for bootcard.c BSP Initialization * startup/bspstart.c: Add capability for bootcard.c BSP Initialization

View File

@@ -139,9 +139,10 @@ text_length:
/* Set up stack pointer = beginning of text section - 56 */ /* Set up stack pointer = beginning of text section - 56 */
addi r1, r1, -56-4 addi r1, r1, -56-4
/* clear argc and argv */ /* Clear argc, argv and envp */
xor r3, r3, r3 xor r3, r3, r3
xor r4, r4, r4 xor r4, r4, r4
xor r5, r5, r5
.extern SYM (boot_card) .extern SYM (boot_card)
bl SYM (boot_card) /* call the first C routine */ bl SYM (boot_card) /* call the first C routine */