Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/arch/ofppc/stand/ofwboot Pull up following revision(s...



details:   https://anonhg.NetBSD.org/src/rev/493f1e00d97c
branches:  netbsd-7
changeset: 798375:493f1e00d97c
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Sep 22 11:13:17 2014 +0000

description:
Pull up following revision(s) (requested by phx in ticket #114):
        sys/arch/ofppc/stand/ofwboot/ofwstart.S: revision 1.4
        sys/arch/ofppc/stand/ofwboot/Locore.c: revision 1.23
        sys/arch/ofppc/stand/ofwboot/version: revision 1.13
A stack size of 8K is too small for a block buffer of 65536 bytes.
Increased the stack size to 128K. This makes ofwboot work with FirmWorks
OpenFirmware systems again (tested with Motorola PowerStack II).

diffstat:

 sys/arch/ofppc/stand/ofwboot/Locore.c   |  4 ++--
 sys/arch/ofppc/stand/ofwboot/ofwstart.S |  7 +++----
 sys/arch/ofppc/stand/ofwboot/version    |  3 ++-
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r 94ed25393ac0 -r 493f1e00d97c sys/arch/ofppc/stand/ofwboot/Locore.c
--- a/sys/arch/ofppc/stand/ofwboot/Locore.c     Mon Sep 22 11:11:10 2014 +0000
+++ b/sys/arch/ofppc/stand/ofwboot/Locore.c     Mon Sep 22 11:13:17 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: Locore.c,v 1.22 2009/01/12 07:49:57 tsutsui Exp $      */
+/*     $NetBSD: Locore.c,v 1.22.40.1 2014/09/22 11:13:17 martin Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -46,7 +46,7 @@
 
 /* this pad gets the rodata laignment right, don't EVER fiddle it */
 char *pad __attribute__((__aligned__ (8))) = "pad";
-int stack[8192/4 + 4] __attribute__((__aligned__ (4), __used__));
+int stack[0x20000/4 + 4] __attribute__((__aligned__ (4), __used__));
 char *heapspace __attribute__((__aligned__ (4)));
 char altheap[0x20000] __attribute__((__aligned__ (4)));
 
diff -r 94ed25393ac0 -r 493f1e00d97c sys/arch/ofppc/stand/ofwboot/ofwstart.S
--- a/sys/arch/ofppc/stand/ofwboot/ofwstart.S   Mon Sep 22 11:11:10 2014 +0000
+++ b/sys/arch/ofppc/stand/ofwboot/ofwstart.S   Mon Sep 22 11:13:17 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwstart.S,v 1.3 2008/04/28 20:23:31 martin Exp $ */
+/* $NetBSD: ofwstart.S,v 1.3.62.1 2014/09/22 11:13:17 martin Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -95,9 +95,8 @@
 _start:
        sync
        isync
-       lis     %r1,stack@ha
-       addi    %r1,%r1,stack@l
-       addi    %r1,%r1,8192
+       lis     %r1,stack+0x20000@ha
+       addi    %r1,%r1,stack+0x20000@l
 
        mfmsr   %r8
        li      %r0,0
diff -r 94ed25393ac0 -r 493f1e00d97c sys/arch/ofppc/stand/ofwboot/version
--- a/sys/arch/ofppc/stand/ofwboot/version      Mon Sep 22 11:11:10 2014 +0000
+++ b/sys/arch/ofppc/stand/ofwboot/version      Mon Sep 22 11:13:17 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: version,v 1.12 2011/08/18 09:03:28 phx Exp $
+$NetBSD: version,v 1.12.28.1 2014/09/22 11:13:17 martin Exp $
 
 1.1:           Boot program for OpenFirmware; initial revision
 1.2:           Boot program rearrangement
@@ -12,3 +12,4 @@
 1.10:          Change note to indicate real mode, add ldscript to support 7046
 1.11:          Support for RDB partitions.
 1.12:          Fixed MBR support, which had been broken in 1.11.
+1.13:          Fixed stack size. Make it work with FirmWorks again.



Home | Main Index | Thread Index | Old Index