We align it to the the next 8k address, as per our 8k kernels.
(This ain't NetBSD, baby.)
Fixed with debugging help from niklas.
-/* $OpenBSD: inst.c,v 1.1 1997/01/17 08:36:51 downsj Exp $ */
+/* $OpenBSD: inst.c,v 1.2 1997/02/05 11:16:37 downsj Exp $ */
/* $NetBSD: inst.c,v 1.6 1996/12/21 21:23:43 thorpej Exp $ */
/*
#include <sys/param.h>
#include <sys/reboot.h>
#include <sys/disklabel.h>
+#include <machine/exec.h>
#include <a.out.h>
#include "stand.h"
#include "samachdep.h"
printf("\n>> OpenBSD MINIROOT INSTALLATION HP9000/%s CPU\n",
getmachineid());
- printf(">> $OpenBSD: inst.c,v 1.1 1997/01/17 08:36:51 downsj Exp $\n");
+ printf(">> $OpenBSD: inst.c,v 1.2 1997/02/05 11:16:37 downsj Exp $\n");
gethelp();
for (;;) {
howto = RB_SINGLE; /* _Always_ */
printf("booting: %s -s\n", bootname);
- exec(bootname, lowram, howto);
+#define LOADALIGN(_x) ((u_long)_x + ((u_long)_x % __LDPGSZ))
+ exec(bootname, (char *)LOADALIGN(lowram), howto);
+#undef LOADALIGN
printf("boot: %s\n", strerror(errno));
}
-# $OpenBSD: Makefile,v 1.4 1997/01/18 03:18:19 downsj Exp $
+# $OpenBSD: Makefile,v 1.5 1997/02/05 11:16:41 downsj Exp $
# $NetBSD: Makefile,v 1.5 1996/06/26 17:44:42 thorpej Exp $
LIB= sa
# Don't need these now...
# DEBUGFLAGS=-DNETIF_DEBUG -DRPC_DEBUG -DNFS_DEBUG -DRARP_DEBUG -DNET_DEBUG
+# DEBUGFLAGS+=-DEXEC_DEBUG
CFLAGS+=-Dhp300 -DSTANDALONE -DCOMPAT_UFS -DNO_LSEEK ${DEBUGFLAGS}
CFLAGS+=-I${.CURDIR}/..
-/* $OpenBSD: uboot.c,v 1.2 1997/02/03 04:48:08 downsj Exp $ */
+/* $OpenBSD: uboot.c,v 1.3 1997/02/05 11:16:38 downsj Exp $ */
/* $NetBSD: uboot.c,v 1.2 1996/10/14 07:33:45 thorpej Exp $ */
/*-
#include <sys/param.h>
#include <sys/reboot.h>
+#include <machine/exec.h>
#include <a.out.h>
#include "stand.h"
#include "samachdep.h"
printf("\n>> OpenBSD UNIFIED BOOT HP9000/%s CPU\n",
getmachineid());
- printf(">> $OpenBSD: uboot.c,v 1.2 1997/02/03 04:48:08 downsj Exp $\n");
+ printf(">> $OpenBSD: uboot.c,v 1.3 1997/02/05 11:16:38 downsj Exp $\n");
printf(">> Enter \"reset\" to reset system.\n");
bdev = B_TYPE(bootdev);
} else
printf(": %s\n", name);
- exec(name, lowram, howto);
+#define LOADALIGN(_x) ((u_long)_x + ((u_long)_x % __LDPGSZ))
+ exec(name, (char *)LOADALIGN(lowram), howto);
+#undef LOADALIGN
printf("boot: %s\n", strerror(errno));
}
}