summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-05-11 21:03:30 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-05-11 21:03:30 +0000
commit0b7cf97b70809d2e76450b784d79cbc415e33821 (patch)
tree9a01c65777d6ff86959eaf822e71b630fda9885c /sys/arch
parent999ca9c7988f32f2490c96d2c397338088c1afe9 (diff)
Make sure we can still boot kernels directly from u-boot.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/socppc/socppc/locore.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/socppc/socppc/locore.S b/sys/arch/socppc/socppc/locore.S
index 89043c5c70d..76dda33eaac 100644
--- a/sys/arch/socppc/socppc/locore.S
+++ b/sys/arch/socppc/socppc/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.2 2008/05/11 19:59:38 kettenis Exp $ */
+/* $OpenBSD: locore.S,v 1.3 2008/05/11 21:03:29 kettenis Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
@@ -87,6 +87,8 @@ start:
lis %r8,_end@ha
addi %r8,%r8,_end@l
#if defined(DDB)
+ cmpwi %r4, 0
+ bne 1f
cmpwi %r6, 0
beq 1f
add %r9,%r6,%r7