Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm __predict_false() an error check.



details:   https://anonhg.NetBSD.org/src/rev/39aa30e8ed8d
branches:  trunk
changeset: 485932:39aa30e8ed8d
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 08 23:13:42 2000 +0000

description:
__predict_false() an error check.

diffstat:

 sys/uvm/uvm_pager_i.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ce53b30222b5 -r 39aa30e8ed8d sys/uvm/uvm_pager_i.h
--- a/sys/uvm/uvm_pager_i.h     Mon May 08 23:11:53 2000 +0000
+++ b/sys/uvm/uvm_pager_i.h     Mon May 08 23:13:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pager_i.h,v 1.8 1999/07/08 18:11:03 thorpej Exp $  */
+/*     $NetBSD: uvm_pager_i.h,v 1.9 2000/05/08 23:13:42 thorpej Exp $  */
 
 /*
  *
@@ -58,7 +58,7 @@
 {
        paddr_t pa;
  
-       if (pmap_extract(pmap_kernel(), kva, &pa) == FALSE)
+       if (__predict_false(pmap_extract(pmap_kernel(), kva, &pa) == FALSE))
                panic("uvm_pageratop");
        return (PHYS_TO_VM_PAGE(pa));
 } 



Home | Main Index | Thread Index | Old Index