aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_param.h
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
commita16f65c7d117419bd266c28a1901ef129a337569 (patch)
tree2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /sys/vm/vm_param.h
parent8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff)
Diffstat (limited to 'sys/vm/vm_param.h')
-rw-r--r--sys/vm/vm_param.h43
1 files changed, 5 insertions, 38 deletions
diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h
index 32f35ce01360..b3a0ed1ce80a 100644
--- a/sys/vm/vm_param.h
+++ b/sys/vm/vm_param.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_param.h 7.2 (Berkeley) 4/21/91
- * $Id: vm_param.h,v 1.2 1993/10/16 16:20:53 rgrimes Exp $
+ * $Id: vm_param.h,v 1.6 1994/01/31 23:48:48 davidg Exp $
*/
/*
@@ -84,20 +84,6 @@ typedef int boolean_t;
#define TRUE 1
#define FALSE 0
-/*
- * The machine independent pages are refered to as PAGES. A page
- * is some number of hardware pages, depending on the target machine.
- */
-
-/*
- * All references to the size of a page should be done with PAGE_SIZE
- * or PAGE_SHIFT. The fact they are variables is hidden here so that
- * we can easily make them constant if we so desire.
- */
-
-#define PAGE_SIZE page_size /* size of page in addressible units */
-#define PAGE_SHIFT page_shift /* number of bits to shift for pages */
-
/*
* Return values from the VM routines.
*/
@@ -112,17 +98,12 @@ typedef int boolean_t;
#define KERN_NO_ACCESS 8
#ifdef ASSEMBLER
-#else ASSEMBLER
+#else /* ASSEMBLER */
/*
* Convert addresses to pages and vice versa.
* No rounding is used.
*/
-#ifdef KERNEL
-#define atop(x) (((unsigned)(x)) >> page_shift)
-#define ptoa(x) ((vm_offset_t)((x) << page_shift))
-#endif KERNEL
-
/*
* Round off or truncate to the nearest page. These will work
* for either addresses or counts. (i.e. 1 byte rounds to 1 page
@@ -130,24 +111,10 @@ typedef int boolean_t;
*/
#ifdef KERNEL
-#define round_page(x) ((vm_offset_t)((((vm_offset_t)(x)) + page_mask) & ~page_mask))
-#define trunc_page(x) ((vm_offset_t)(((vm_offset_t)(x)) & ~page_mask))
-#else KERNEL
-#define round_page(x) ((((vm_offset_t)(x) + (vm_page_size - 1)) / vm_page_size) * vm_page_size)
-#define trunc_page(x) ((((vm_offset_t)(x)) / vm_page_size) * vm_page_size)
-#endif KERNEL
-
-#ifdef KERNEL
-extern vm_size_t page_size; /* machine independent page size */
-extern vm_size_t page_mask; /* page_size - 1; mask for
- offset within page */
-extern int page_shift; /* shift to use for page size */
-
-extern vm_size_t mem_size; /* size of physical memory (bytes) */
extern vm_offset_t first_addr; /* first physical page */
extern vm_offset_t last_addr; /* last physical page */
-#endif KERNEL
+#endif /* KERNEL */
-#endif ASSEMBLER
+#endif /* ASSEMBLER */
-#endif _VM_PARAM_
+#endif /* _VM_PARAM_ */