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/vm/vm_page.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/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 3c9665221fd..3616fc38b79 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_page.h,v 1.16 2001/08/06 14:03:05 art Exp $ */ +/* $OpenBSD: vm_page.h,v 1.17 2001/08/11 10:57:22 art Exp $ */ /* $NetBSD: vm_page.h,v 1.35 2000/03/26 20:54:48 kleink Exp $ */ /* @@ -149,12 +149,17 @@ struct vm_page { * PQ_ ==> lock by page queue lock * PQ_FREE is locked by free queue lock and is mutex with all other PQs * + * PG_ZERO is used to indicate that a page has been pre-zero'd. This flag + * is only set when the page is on no queues, and is cleared when the page + * is placed on the free list. + * * possible deadwood: PG_FAULTING, PQ_LAUNDRY */ #define PG_CLEAN 0x0008 /* page has not been modified */ #define PG_BUSY 0x0010 /* page is in transit */ #define PG_WANTED 0x0020 /* someone is waiting for page */ #define PG_TABLED 0x0040 /* page is in VP table */ +#define PG_ZERO 0x0100 /* page is pre-zero'd */ #define PG_FAKE 0x0200 /* page is placeholder for pagein */ #define PG_FILLED 0x0400 /* client flag to set when filled */ #define PG_DIRTY 0x0800 /* client flag to set when dirty */ |