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.
This commit is contained in:
uwe 2002-12-08 14:36:55 +00:00
parent d24191b40d
commit 38b8c5689a

View File

@ -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))