declare some variables in init.c instead of runtime startoff

This commit is contained in:
ceriel 1988-05-03 12:44:32 +00:00
parent 781a1218a5
commit e40b7407d5
2 changed files with 7 additions and 18 deletions

View file

@ -26,24 +26,6 @@
exp $init exp $init
inp $trap_handler 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 mainroutine
bss 2*EM_PSIZE,0,0 bss 2*EM_PSIZE,0,0

View file

@ -25,3 +25,10 @@ init()
sigtrp(M2_UNIXSIG, SIGALRM); sigtrp(M2_UNIXSIG, SIGALRM);
sigtrp(M2_UNIXSIG, SIGTERM); sigtrp(M2_UNIXSIG, SIGTERM);
} }
extern int catch();
int (*handler)() = catch;
char **argv, **environ;
int argc, StackSize;
char *CurrentProcess, MainProcess, StackBase, MainLB;