Module Name: src
Committed By: macallan
Date: Wed Dec 14 13:04:24 UTC 2022
Modified Files:
src/sys/arch/macppc/macppc: locore.S
Log Message:
Explicitly zero SPRG0 before doing anything else - it's used to store a pointer
to struct cpuinfo, this way we can catch attempts to use it before it's set
up properly
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/arch/macppc/macppc/locore.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/macppc/macppc/locore.S
diff -u src/sys/arch/macppc/macppc/locore.S:1.79 src/sys/arch/macppc/macppc/locore.S:1.80
--- src/sys/arch/macppc/macppc/locore.S:1.79 Fri Feb 26 02:18:56 2021
+++ src/sys/arch/macppc/macppc/locore.S Wed Dec 14 13:04:24 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.79 2021/02/26 02:18:56 thorpej Exp $ */
+/* $NetBSD: locore.S,v 1.80 2022/12/14 13:04:24 macallan Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -92,6 +92,9 @@ __start:
mr %r13,%r6
mr %r14,%r7
+ li %r0,0
+ mtsprg0 %r0
+
bl _C_LABEL(ofwinit) /* init OF */
li %r0,0