summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ppcn_60x
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-02 16:30:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-02 16:30:57 +0000
commit15c48f4c67f57fbe3c602fa366afabb413aac9d0 (patch)
tree800016d9abba8ebb7f85c8016fc69799e73efe4f /c/src/lib/libbsp/powerpc/ppcn_60x
parentf3d9df08d5f116370ebd3761f861f31e1e142595 (diff)
downloadrtems-15c48f4c67f57fbe3c602fa366afabb413aac9d0.tar.bz2
Properly pass argc, argc, and environp to boot_card.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ppcn_60x')
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/start/start.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/start/start.S b/c/src/lib/libbsp/powerpc/ppcn_60x/start/start.S
index 1fa6f64da9..782a0b8de1 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/start/start.S
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/start/start.S
@@ -126,10 +126,10 @@ _start:
stw r0,0(sp) /* clear back chain */
stwu sp,-56(sp) /* push another stack frame */
- li r3, 0 /* argc */
+ lis r5,environ@ha
+ la r5,environ@l(r5) /* environp */
li r4, 0 /* argv */
- li r5, 0 /* environp */
-
+ li r3, 0 /* argc */
/* Let her rip */
bl FUNC_NAME(boot_card)
@@ -152,3 +152,5 @@ _start:
blr
.Lstart:
.size _start,.Lstart-_start
+
+ .comm environ,4,4