declare some variables in init.c instead of runtime startoff
This commit is contained in:
parent
781a1218a5
commit
e40b7407d5
|
@ -26,24 +26,6 @@
|
|||
exp $init
|
||||
inp $trap_handler
|
||||
|
||||
handler
|
||||
con $catch
|
||||
environ
|
||||
bss EM_PSIZE,0,0
|
||||
argv
|
||||
bss EM_PSIZE,0,0
|
||||
argc
|
||||
bss EM_WSIZE,0,0
|
||||
CurrentProcess
|
||||
bss EM_PSIZE,0,0
|
||||
MainProcess
|
||||
bss EM_PSIZE,0,0
|
||||
StackBase
|
||||
bss EM_PSIZE,0,0
|
||||
MainLB
|
||||
bss EM_PSIZE,0,0
|
||||
StackSize
|
||||
bss EM_WSIZE,0,0
|
||||
mainroutine
|
||||
bss 2*EM_PSIZE,0,0
|
||||
|
||||
|
|
|
@ -25,3 +25,10 @@ init()
|
|||
sigtrp(M2_UNIXSIG, SIGALRM);
|
||||
sigtrp(M2_UNIXSIG, SIGTERM);
|
||||
}
|
||||
|
||||
extern int catch();
|
||||
|
||||
int (*handler)() = catch;
|
||||
char **argv, **environ;
|
||||
int argc, StackSize;
|
||||
char *CurrentProcess, MainProcess, StackBase, MainLB;
|
||||
|
|
Loading…
Reference in a new issue