summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-09-02 04:25:40 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-09-02 04:25:40 +0000
commit7be54aa04984e4ee68c7ec4672aef608ab12c9f6 (patch)
treec43add8106da25e752beea33e26b26a9c6c73e60 /sys/arch/i386/stand/libsa
parentc21a6995acfbd41fe35f958ae5dff6d5796f7079 (diff)
Fix the bios boot to pass the bootargs properly.
ok deraddt
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/exec_i386.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c
index 9165f1ce055..4672b9761af 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.40 2015/09/02 04:09:24 yasuoka Exp $ */
+/* $OpenBSD: exec_i386.c,v 1.41 2015/09/02 04:25:39 yasuoka Exp $ */
/*
* Copyright (c) 1997-1998 Michael Shalayeff
@@ -117,11 +117,15 @@ run_loadfile(u_long *marks, int howto)
/* Pass memory map to the kernel */
mem_pass();
+#ifdef __amd64__
/*
* This code may be used both for 64bit and 32bit. Make sure the
* bootarg is 32bit always on even on amd64.
*/
makebootargs32(av, &ac);
+#else
+ makebootargs(av, &ac);
+#endif
entry = marks[MARK_ENTRY] & 0x0fffffff;