pmap_page_upload(): check if `etext_gap' is there, just in case.

This commit is contained in:
pk 2001-02-13 13:48:15 +00:00
parent 284047a2b2
commit e547d3816d
1 changed files with 7 additions and 6 deletions

View File

@ -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 @@ pmap_page_upload()
#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++) {
/*