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/boot compat mode: skip double map at VA...
details: https://anonhg.NetBSD.org/src/rev/1a1858c12df6
branches: trunk
changeset: 565435:1a1858c12df6
user: pk <pk%NetBSD.org@localhost>
date: Thu Apr 08 07:35:34 2004 +0000
description:
compat mode: skip double map at VA 0 if the physical load address is 0.
This allows a much wider range of historic kernels to be booted (w/ `-C').
diffstat:
sys/arch/sparc/stand/boot/boot.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 6e0a1faac793 -r 1a1858c12df6 sys/arch/sparc/stand/boot/boot.c
--- a/sys/arch/sparc/stand/boot/boot.c Thu Apr 08 07:24:26 2004 +0000
+++ b/sys/arch/sparc/stand/boot/boot.c Thu Apr 08 07:35:34 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.18 2003/08/07 16:29:46 agc Exp $ */
+/* $NetBSD: boot.c,v 1.19 2004/04/08 07:35:34 pk Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@@ -217,7 +217,7 @@
goto out;
}
- if (pmap_map(0, pa, size) != 0) {
+ if (pa != 0 && pmap_map(0, pa, size) != 0) {
error = EFAULT;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index