Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/ofwboot Provide a mostly-zeroed page at...



details:   https://anonhg.NetBSD.org/src/rev/f5c14f1b7651
branches:  trunk
changeset: 461502:f5c14f1b7651
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Nov 28 14:21:25 2019 +0000

description:
Provide a mostly-zeroed page at the start of the text segment, to work around
an OpenBIOS bug, see PR port-sparc64/54719 for details.

diffstat:

 sys/arch/sparc/stand/ofwboot/srt0.s |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r e409b0485bf3 -r f5c14f1b7651 sys/arch/sparc/stand/ofwboot/srt0.s
--- a/sys/arch/sparc/stand/ofwboot/srt0.s       Thu Nov 28 14:13:37 2019 +0000
+++ b/sys/arch/sparc/stand/ofwboot/srt0.s       Thu Nov 28 14:21:25 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: srt0.s,v 1.7 2015/08/23 10:59:15 joerg Exp $   */
+/*     $NetBSD: srt0.s,v 1.8 2019/11/28 14:21:25 martin Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -63,7 +63,10 @@
        _C_LABEL(kernel_text) = _start
 _start:
        nop                     ! For some reason this is needed to fixup the text section
-
+       b 1f
+        nop
+       .zero 8192-(.-_start)   /* hack for OpenBIOS, see port-sparc64/54719 */
+1:
        /*
         * Start by creating a stack for ourselves.
         */



Home | Main Index | Thread Index | Old Index