summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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;