Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include Use 0x07ffffff for LOADADDR mask. Th...
details: https://anonhg.NetBSD.org/src/rev/5286f37d9aac
branches: trunk
changeset: 540263:5286f37d9aac
user: uwe <uwe%NetBSD.org@localhost>
date: Sun Dec 08 14:36:55 2002 +0000
description:
Use 0x07ffffff for LOADADDR mask. This still provides for 128MB (and
given that PROM maps just 4 or 16 this is not going to be a bottle
neck). Doesn't really affect normal kernels, need it for the changed
kernel base address (uncommitted) hack for broken javastation OFW.
Ok by pk.
diffstat:
sys/arch/sparc/include/loadfile_machdep.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d9e078d90a72 -r 5286f37d9aac sys/arch/sparc/include/loadfile_machdep.h
--- a/sys/arch/sparc/include/loadfile_machdep.h Sun Dec 08 13:22:31 2002 +0000
+++ b/sys/arch/sparc/include/loadfile_machdep.h Sun Dec 08 14:36:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_machdep.h,v 1.6 2002/07/20 08:37:30 mrg Exp $ */
+/* $NetBSD: loadfile_machdep.h,v 1.7 2002/12/08 14:36:55 uwe Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#define COUNT_KERNEL COUNT_ALL
#ifdef _STANDALONE
-#define LOADADDR(a) (((u_long)(a) & 0x0fffffff) + (u_long)offset)
+#define LOADADDR(a) (((u_long)(a) & 0x07ffffff) + (u_long)offset)
#define ALIGNENTRY(a) ((u_long)(a))
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
Home |
Main Index |
Thread Index |
Old Index