Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc pmap_page_upload(): check if `etext_gap...
details: https://anonhg.NetBSD.org/src/rev/14c19a37b735
branches: trunk
changeset: 503783:14c19a37b735
user: pk <pk%NetBSD.org@localhost>
date: Tue Feb 13 13:48:15 2001 +0000
description:
pmap_page_upload(): check if `etext_gap' is there, just in case.
diffstat:
sys/arch/sparc/sparc/pmap.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r fd82a24f0342 -r 14c19a37b735 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Tue Feb 13 13:19:52 2001 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Tue Feb 13 13:48:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.177 2001/02/12 22:02:58 pk Exp $ */
+/* $NetBSD: pmap.c,v 1.178 2001/02/13 13:48:15 pk Exp $ */
/*
* Copyright (c) 1996
@@ -791,11 +791,12 @@
#endif
/* First, the `etext gap' */
- uvm_page_physload(
- atop(etext_gap_start_pa),
- atop(etext_gap_end_pa),
- atop(etext_gap_start_pa),
- atop(etext_gap_end_pa), VM_FREELIST_DEFAULT);
+ if (etext_gap_start_pa < etext_gap_end_pa)
+ uvm_page_physload(
+ atop(etext_gap_start_pa),
+ atop(etext_gap_end_pa),
+ atop(etext_gap_start_pa),
+ atop(etext_gap_end_pa), VM_FREELIST_DEFAULT);
for (n = 0; n < npmemarr; n++) {
/*
Home |
Main Index |
Thread Index |
Old Index