diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-19 08:58:08 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-19 08:58:08 +0000 |
commit | d8afae924f4db99650aa0df115c6ae66ed02b950 (patch) | |
tree | a2cbc045f0eb624a394f8e45fea1a58ecf1faaf0 /sys/uvm/uvm_param.h | |
parent | 4a6c79ff4f05aaae32458104529a9a9e0d3d208b (diff) |
UBC was a disaster. It worked very good when it worked, but on some
machines or some configurations or in some phase of the moon (we actually
don't know when or why) files disappeared. Since we've not been able to
track down the problem in two weeks intense debugging and we need -current
to be stable, back out everything to a state it had before UBC.
We apologise for the inconvenience.
Diffstat (limited to 'sys/uvm/uvm_param.h')
-rw-r--r-- | sys/uvm/uvm_param.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/sys/uvm/uvm_param.h b/sys/uvm/uvm_param.h index 5cc1be262cc..60e5296d90b 100644 --- a/sys/uvm/uvm_param.h +++ b/sys/uvm/uvm_param.h @@ -1,7 +1,7 @@ -/* $OpenBSD: uvm_param.h,v 1.6 2001/12/04 23:22:42 art Exp $ */ -/* $NetBSD: uvm_param.h,v 1.12 2001/08/05 03:33:16 matt Exp $ */ +/* $OpenBSD: uvm_param.h,v 1.7 2001/12/19 08:58:07 art Exp $ */ +/* $NetBSD: uvm_param.h,v 1.5 2001/03/09 01:02:12 chs Exp $ */ -/* +/* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * @@ -72,9 +72,7 @@ #ifndef _VM_PARAM_ #define _VM_PARAM_ -#ifdef _KERNEL #include <machine/vmparam.h> -#endif /* * This belongs in types.h, but breaks too many existing programs. @@ -141,6 +139,18 @@ struct _ps_strings { #define SWAPSKIPBYTES 8192 /* never use at the start of a swap space */ +/* + * Return values from the VM routines. + */ +#define KERN_SUCCESS 0 +#define KERN_INVALID_ADDRESS EFAULT +#define KERN_PROTECTION_FAILURE EACCES +#define KERN_NO_SPACE ENOMEM +#define KERN_INVALID_ARGUMENT EINVAL +#define KERN_FAILURE EFAULT +#define KERN_RESOURCE_SHORTAGE ENOMEM +#define KERN_PAGES_LOCKED 9 /* XXX never returned */ + #ifndef ASSEMBLER /* * Convert addresses to pages and vice versa. @@ -158,8 +168,10 @@ struct _ps_strings { #define trunc_page(x) ((x) & ~PAGE_MASK) extern psize_t mem_size; /* size of physical memory (bytes) */ +#ifdef UBC extern int ubc_nwins; /* number of UBC mapping windows */ -extern int ubc_winshift; /* shift for a UBC mapping window */ +extern int ubc_winsize; /* size of a UBC mapping window */ +#endif #else /* out-of-kernel versions of round_page and trunc_page */ |