From d45c9982dffd309320d52c4b32820ecc851c69ef Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 8 May 2000 23:11:53 +0000 Subject: [PATCH] __predict_false() DIAGNOSTIC error checks. --- sys/uvm/uvm_page_i.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/uvm/uvm_page_i.h b/sys/uvm/uvm_page_i.h index 2ef3ddbfe77d..a6d1d086b695 100644 --- a/sys/uvm/uvm_page_i.h +++ b/sys/uvm/uvm_page_i.h @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page_i.h,v 1.12 2000/03/26 20:54:47 kleink 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. @@ -215,7 +215,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 @@ -311,7 +311,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);