summaryrefslogtreecommitdiff
path: root/sys/arch/aviion/stand
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-05-20 22:40:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-05-20 22:40:47 +0000
commitf8e7d10b85514bec7a8d6c91c901756a72cf26f2 (patch)
tree248ca57cfa906a360734d8845df706c36cc165c4 /sys/arch/aviion/stand
parent88a1b9be8a60676bd3cac36d07bdeb82a3cf4d74 (diff)
Let the bootloader pass esym to the kernel, and let the kernel make good use
of this if it finds out it has not been directly loaded by the PROM; not tested yet.
Diffstat (limited to 'sys/arch/aviion/stand')
-rw-r--r--sys/arch/aviion/stand/libsa/exec_aout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/aviion/stand/libsa/exec_aout.c b/sys/arch/aviion/stand/libsa/exec_aout.c
index a2f6495d9a2..300bf900284 100644
--- a/sys/arch/aviion/stand/libsa/exec_aout.c
+++ b/sys/arch/aviion/stand/libsa/exec_aout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_aout.c,v 1.1 2006/05/16 22:48:18 miod Exp $ */
+/* $OpenBSD: exec_aout.c,v 1.2 2006/05/20 22:40:46 miod Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@@ -39,7 +39,7 @@
#include "stand.h"
#include "libsa.h"
-#define SYM_MAGIC 0x6274ef2d
+#define SYM_MAGIC 0x6274ef2e
/*ARGSUSED*/
void
@@ -160,7 +160,7 @@ exec_aout(char *file, const char *args, int bootdev, int bootunit, int bootpart)
printf("=0x%lx\n", cp - loadaddr);
close(io);
- (*entry)(args, bootdev, bootunit, bootpart, SYM_MAGIC);
+ (*entry)(args, bootdev, bootunit, bootpart, SYM_MAGIC, cp);
printf("exec: kernel returned!\n");
return;