Source-Changes-HG archive

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

[src/chs-ubc2]: src/sys/uvm make sure pages are allocated on page-aligned off...



details:   https://anonhg.NetBSD.org/src/rev/c5941024d56a
branches:  chs-ubc2
changeset: 471393:c5941024d56a
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 11 05:49:07 1999 +0000

description:
make sure pages are allocated on page-aligned offsets.

diffstat:

 sys/uvm/uvm_page.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 4aee726e1d9b -r c5941024d56a sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Sun Jul 11 05:48:34 1999 +0000
+++ b/sys/uvm/uvm_page.c        Sun Jul 11 05:49:07 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.17.2.1.2.2 1999/06/21 01:47:21 thorpej Exp $    */
+/*     $NetBSD: uvm_page.c,v 1.17.2.1.2.3 1999/07/11 05:49:07 chs Exp $        */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -848,6 +848,10 @@
        /* sanity check */
        if (obj && anon)
                panic("uvm_pagealloc: obj and anon != NULL");
+       if (off != trunc_page(off)) {
+               panic("uvm_pagealloc: off 0x%x not multiple of pagesize",
+                     (int)off);
+       }
 #endif
 
        s = uvm_lock_fpageq();          /* lock free page queue */



Home | Main Index | Thread Index | Old Index