Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/vax Don't substract KERNBASE, xor it to clear. ...
details: https://anonhg.NetBSD.org/src/rev/7a712f397e34
branches: trunk
changeset: 513605:7a712f397e34
user: matt <matt%NetBSD.org@localhost>
date: Sun Aug 05 06:14:22 2001 +0000
description:
Don't substract KERNBASE, xor it to clear. The former causes GNU ld to
bitch about a signed overflow and this code is only done once, incurring
an extra instruction isn't going to matter much in the long run.
diffstat:
sys/arch/vax/vax/pmap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r cfc4c261323c -r 7a712f397e34 sys/arch/vax/vax/pmap.c
--- a/sys/arch/vax/vax/pmap.c Sun Aug 05 06:10:25 2001 +0000
+++ b/sys/arch/vax/vax/pmap.c Sun Aug 05 06:14:22 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.104 2001/06/30 12:54:34 ragge Exp $ */
+/* $NetBSD: pmap.c,v 1.105 2001/08/05 06:14:22 matt Exp $ */
/*
* Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -246,7 +246,7 @@
* There are also a couple of other things that must be in
* physical memory and that isn't managed by the vm system.
*/
- for (i = 0; i < ((unsigned)&etext - KERNBASE) >> VAX_PGSHIFT; i++)
+ for (i = 0; i < ((unsigned)&etext ^ KERNBASE) >> VAX_PGSHIFT; i++)
Sysmap[i].pg_prot = PROT_URKW;
/* Map System Page Table and zero it, Sysmap already set. */
Home |
Main Index |
Thread Index |
Old Index