summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2008-07-05 23:03:04 +0000
committerkettenis <kettenis@openbsd.org>2008-07-05 23:03:04 +0000
commit6098369365e6d5dc914e5c2128c8052c20581ef1 (patch)
treec3383245acf7468090be06405b250a3da87f2b37
parentRound up memory allocations to page size. Apparently sane firmware versions do (diff)
downloadwireguard-openbsd-6098369365e6d5dc914e5c2128c8052c20581ef1.tar.xz
wireguard-openbsd-6098369365e6d5dc914e5c2128c8052c20581ef1.zip
Apparantly the "chain" OpenFirmware interface always fails so don't bother
with it. Makes the bootloader work on the v1280 where the firmware breaks into the firmware debugger instead of returning failure.
-rw-r--r--sys/arch/sparc64/stand/ofwboot/Locore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/Locore.c b/sys/arch/sparc64/stand/ofwboot/Locore.c
index 23917e4db9e..53d39a44e88 100644
--- a/sys/arch/sparc64/stand/ofwboot/Locore.c
+++ b/sys/arch/sparc64/stand/ofwboot/Locore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: Locore.c,v 1.7 2007/01/16 14:39:57 tsi Exp $ */
+/* $OpenBSD: Locore.c,v 1.8 2008/07/05 23:03:04 kettenis Exp $ */
/* $NetBSD: Locore.c,v 1.1 2000/08/20 14:58:36 mrg Exp $ */
/*
@@ -377,6 +377,7 @@ OF_chain(virt, size, entry, arg, len)
u_int len;
{
extern int64_t romp;
+#ifdef __notyet
extern int debug;
struct {
cell_t name;
@@ -405,6 +406,7 @@ OF_chain(virt, size, entry, arg, len)
printf("Calling entry(0, %p, %x, %lx, %lx)\n", arg, len,
(unsigned long)romp, (unsigned long)romp);
}
+#endif
entry(0, arg, len, (unsigned long)romp, (unsigned long)romp);
panic("OF_chain: kernel returned!");
__asm("ta 2" : :);