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/common Account for the stack when compu...



details:   https://anonhg.NetBSD.org/src/rev/749273c37a41
branches:  trunk
changeset: 488092:749273c37a41
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun Jun 18 02:25:17 2000 +0000

description:
Account for the stack when computing the base va. This makes the
bootblocks work again on the 4/110.

diffstat:

 sys/arch/sparc/stand/common/dvma.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 66864a07f25a -r 749273c37a41 sys/arch/sparc/stand/common/dvma.c
--- a/sys/arch/sparc/stand/common/dvma.c        Sun Jun 18 01:31:23 2000 +0000
+++ b/sys/arch/sparc/stand/common/dvma.c        Sun Jun 18 02:25:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dvma.c,v 1.6 2000/04/14 14:14:47 pk Exp $      */
+/*     $NetBSD: dvma.c,v 1.7 2000/06/18 02:25:17 fvdl Exp $    */
 /*
  * Copyright (c) 1995 Gordon W. Ross
  * All rights reserved.
@@ -65,7 +65,7 @@
 
        /* Align our address base with the DVMA segment */
        dmava = DVMA_BASE;
-       base_va = segva = ((int)&start) & DVMA_BASE;
+       base_va = segva = (((int)&start)  - 0x40000) & DVMA_BASE;
 
        /* Then double-map the DVMA adresses */
        nseg = (DVMA_MAPLEN + NBPSG - 1) >> SGSHIFT;



Home | Main Index | Thread Index | Old Index