diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-11 10:57:23 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-11 10:57:23 +0000 |
commit | 7a180b0dffd8a6191dc39c284c4b43646bbe8ac6 (patch) | |
tree | 5442aa1b4d2ff26b5330a6478a7d647080cc100a /sys/uvm/uvm_page_i.h | |
parent | 511fb2556ded7a7b5ce46090532eccce46d77468 (diff) |
Various random fixes from NetBSD.
Including support for zeroing pages in the idle loop (not enabled yet).
Diffstat (limited to 'sys/uvm/uvm_page_i.h')
-rw-r--r-- | sys/uvm/uvm_page_i.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/uvm/uvm_page_i.h b/sys/uvm/uvm_page_i.h index c38ea665282..6576d6b118b 100644 --- a/sys/uvm/uvm_page_i.h +++ b/sys/uvm/uvm_page_i.h @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_page_i.h,v 1.7 2001/08/06 14:03:05 art Exp $ */ -/* $NetBSD: uvm_page_i.h,v 1.12 2000/03/26 20:54:47 kleink Exp $ */ +/* $OpenBSD: uvm_page_i.h,v 1.8 2001/08/11 10:57:22 art Exp $ */ +/* $NetBSD: uvm_page_i.h,v 1.13 2000/05/08 23:11:53 thorpej Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -216,7 +216,7 @@ uvm_pagedeactivate(pg) } if ((pg->pqflags & PQ_INACTIVE) == 0) { #ifdef DIAGNOSTIC - if (pg->wire_count) + if (__predict_false(pg->wire_count)) panic("uvm_pagedeactivate: caller did not check " "wire count"); #endif @@ -312,7 +312,7 @@ uvm_page_lookup_freelist(pg) lcv = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), NULL); #ifdef DIAGNOSTIC - if (lcv == -1) + if (__predict_false(lcv == -1)) panic("uvm_page_lookup_freelist: unable to locate physseg"); #endif return (vm_physmem[lcv].free_list); |