add a diagnostic panic to catch illegal memory ranges passed to

uvm_page_physload()
This commit is contained in:
drochner 1999-11-24 18:28:49 +00:00
parent 6fb3342476
commit b1f2453dee
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_page.c,v 1.25 1999/09/12 01:17:38 chs Exp $ */
/* $NetBSD: uvm_page.c,v 1.26 1999/11/24 18:28:49 drochner Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -571,6 +571,9 @@ uvm_page_physload(start, end, avail_start, avail_end, free_list)
if (free_list >= VM_NFREELIST || free_list < VM_FREELIST_DEFAULT)
panic("uvm_page_physload: bad free list %d\n", free_list);
if (start >= end)
panic("uvm_page_physload: start >= end");
/*
* do we have room?
*/