summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-05-06 17:13:23 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-05-06 17:13:23 +0000
commit0724c3098f010aa5ede8acc1450d222871ba7c30 (patch)
treed49b82cc100782d92f7f9dd1cad0585ec7df87d7 /sys/arch
parentd2ce33ad2b5e3cb8b1afa6d90df37974d01c3ef6 (diff)
Fix thinko in previous. The .bss clearing was overzealous and overwrote
a part of the free memory list, terminating it prematurely.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/octeon/octeon/locore.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/octeon/octeon/locore.S b/sys/arch/octeon/octeon/locore.S
index 3c9a0c7aa68..32667171a6b 100644
--- a/sys/arch/octeon/octeon/locore.S
+++ b/sys/arch/octeon/octeon/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.18 2019/05/05 15:43:24 visa Exp $ */
+/* $OpenBSD: locore.S,v 1.19 2019/05/06 17:13:22 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -129,9 +129,9 @@ locore_start:
LA t0, edata
LA t1, end
1:
- sd zero, (t0)
- blt t0, t1, 1b
daddu t0, t0, 8
+ blt t0, t1, 1b
+ sd zero, -8(t0)
/*
* Initialize stack and call machine startup.