From 15c48f4c67f57fbe3c602fa366afabb413aac9d0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 2 Aug 2000 16:30:57 +0000 Subject: Properly pass argc, argc, and environp to boot_card. --- c/src/lib/libbsp/powerpc/helas403/dlentry/dlentry.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'c/src/lib/libbsp/powerpc/helas403/dlentry/dlentry.S') diff --git a/c/src/lib/libbsp/powerpc/helas403/dlentry/dlentry.S b/c/src/lib/libbsp/powerpc/helas403/dlentry/dlentry.S index 3944d2bc47..2d37090a4f 100644 --- a/c/src/lib/libbsp/powerpc/helas403/dlentry/dlentry.S +++ b/c/src/lib/libbsp/powerpc/helas403/dlentry/dlentry.S @@ -116,6 +116,10 @@ stack_top: stw r3, 4(r1) stw r3, 8(r1) stw r3, 12(r1) + lis r5,environ@ha + la r5,environ@l(r5) /* environp */ + li r4, 0 /* argv */ + li r3, 0 /* argc */ .extern SYM (boot_card) b SYM (boot_card) /* call the first C routine */ @@ -142,3 +146,5 @@ clear_bss: #if PPC_ABI == PPC_ABI_POWEROPEN DESCRIPTOR (startup) #endif + + .comm environ,4,4 -- cgit v1.2.3