diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-25 07:00:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-25 07:00:27 +0000 |
commit | dd14282aaf8050e6d14d79a0ced5bcd348044845 (patch) | |
tree | 738351831d3d45a437893b8eb4239e70f5f8f2db /sys/arch | |
parent | 1fab589e562a0cffdd8b55dc7ef57b31d71ce949 (diff) |
new bootarg
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/stand/libsa/exec_i386.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c index 5ea02d0acc2..aa954abab7a 100644 --- a/sys/arch/i386/stand/libsa/exec_i386.c +++ b/sys/arch/i386/stand/libsa/exec_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_i386.c,v 1.18 1997/10/22 23:34:38 mickey Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.19 1997/10/25 07:00:26 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -52,11 +52,14 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) char *startaddr, *loadaddr, *ssym, *esym; int howto; { - size_t argc; - void *argv = makebootargs(&argc); + size_t ac = BOOTARG_LEN; + caddr_t av = (caddr_t)BOOTARG_OFF; #ifdef EXEC_DEBUG struct exec *x; +#endif + makebootargs(av, &ac); +#ifdef EXEC_DEBUG x = (void *)loadaddr; printf("exec {\n\ta_midmag = %lx\n\ta_text = %lx\n\ta_data = %lx\n" "\ta_bss = %lx\n\ta_syms = %lx\n\ta_entry = %lx\n" @@ -66,7 +69,7 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) printf("/bsd(%x,%x,%x,%x,%x,%x,%d,%p)\n", howto, bootdev, BOOT_APIVER, round_to_size(esym), - extmem, cnvmem, argc, argv); + extmem, cnvmem, ac, av); getchar(); #endif (int)startaddr &= 0xffffff; @@ -74,6 +77,6 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) printf("entry point at %p\n", startaddr); /* stack and the gung is ok at this point, so, no need for asm setup */ (*(startfuncp)startaddr)(howto, bootdev, BOOT_APIVER, - round_to_size(esym), extmem, cnvmem, argc, (int)argv); + round_to_size(esym), extmem, cnvmem, ac, (int)av); /* not reached */ } |