From 75ff2b524f49004c6afee07d65b8dfa530bf747d Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 22 Oct 1997 23:34:42 +0000 Subject: newer, better stuff; some parts by toby@ --- sys/arch/i386/stand/libsa/exec_i386.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sys/arch/i386/stand/libsa/exec_i386.c') diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c index ccbac6da03f..5ea02d0acc2 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.17 1997/09/19 17:20:43 niklas Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.18 1997/10/22 23:34:38 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -38,6 +38,7 @@ #include #include #include +#include #include #include "libsa.h" @@ -51,6 +52,8 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) char *startaddr, *loadaddr, *ssym, *esym; int howto; { + size_t argc; + void *argv = makebootargs(&argc); #ifdef EXEC_DEBUG struct exec *x; @@ -61,17 +64,16 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) x->a_midmag, x->a_text, x->a_data, x->a_bss, x->a_syms, x->a_entry, x->a_trsize, x->a_drsize); - printf("/bsd(%x,%x,%x,%x,%x,%x,%x)\n", + printf("/bsd(%x,%x,%x,%x,%x,%x,%d,%p)\n", howto, bootdev, BOOT_APIVER, round_to_size(esym), - extmem, cnvmem, (int)&BIOS_vars, sizeof(BIOS_vars)); + extmem, cnvmem, argc, argv); getchar(); #endif (int)startaddr &= 0xffffff; - printf("entry point at 0x%x\n", (int)startaddr); + 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, (int)&BIOS_vars, - sizeof (BIOS_vars)); + round_to_size(esym), extmem, cnvmem, argc, (int)argv); /* not reached */ } -- cgit v1.2.3