mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Patch from Eric Norum <eric@cls.usask.ca> to modify the generic
m68k start code to setup the "environ" variable properly. With this patch, his EPICS application that runs on the gen68360 also runs on the mvmv167.
This commit is contained in:
@@ -91,8 +91,8 @@ loop: movel #0,a1@+ | to zero out uninitialized
|
|||||||
lea SYM (hiintstack),a0 | a0 = high end of intr stack
|
lea SYM (hiintstack),a0 | a0 = high end of intr stack
|
||||||
movec a0,isp | set interrupt stack
|
movec a0,isp | set interrupt stack
|
||||||
#endif
|
#endif
|
||||||
movel #0,a7@- | push environp
|
pea env | push environp
|
||||||
movel #0,a7@- | push argv
|
pea arg | push argv
|
||||||
movel #0,a7@- | push argc
|
movel #0,a7@- | push argc
|
||||||
|
|
||||||
jsr SYM (boot_card)
|
jsr SYM (boot_card)
|
||||||
@@ -115,6 +115,11 @@ END_CODE
|
|||||||
|
|
||||||
BEGIN_DATA
|
BEGIN_DATA
|
||||||
|
|
||||||
|
PUBLIC (environ)
|
||||||
|
.align 2
|
||||||
|
SYM (environ):
|
||||||
|
.long env
|
||||||
|
|
||||||
PUBLIC (start_frame)
|
PUBLIC (start_frame)
|
||||||
SYM (start_frame):
|
SYM (start_frame):
|
||||||
.space 4,0
|
.space 4,0
|
||||||
@@ -123,10 +128,8 @@ END_DATA
|
|||||||
|
|
||||||
BEGIN_BSS
|
BEGIN_BSS
|
||||||
|
|
||||||
PUBLIC (environ)
|
env: .long 0
|
||||||
.align 2
|
arg: .long 0
|
||||||
SYM (environ):
|
|
||||||
.long 0
|
|
||||||
|
|
||||||
PUBLIC (initial_isp)
|
PUBLIC (initial_isp)
|
||||||
SYM (initial_isp):
|
SYM (initial_isp):
|
||||||
|
|||||||
Reference in New Issue
Block a user