diff options
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r-- | sys/arch/sparc/include/pmap.h | 9 | ||||
-rw-r--r-- | sys/arch/sparc/include/vmparam.h | 26 |
2 files changed, 30 insertions, 5 deletions
diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h index 550d6e9aa1a..59adaaa581b 100644 --- a/sys/arch/sparc/include/pmap.h +++ b/sys/arch/sparc/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.8 1999/04/22 17:07:29 art Exp $ */ +/* $OpenBSD: pmap.h,v 1.9 1999/04/22 20:36:20 art Exp $ */ /* $NetBSD: pmap.h,v 1.30 1997/08/04 20:00:47 pk Exp $ */ /* @@ -270,9 +270,7 @@ void pmap_reference __P((pmap_t)); void pmap_release __P((pmap_t)); void pmap_remove __P((pmap_t, vm_offset_t, vm_offset_t)); void pmap_update __P((void)); -u_int pmap_free_pages __P((void)); void pmap_init __P((void)); -boolean_t pmap_next_page __P((vm_offset_t *)); int pmap_page_index __P((vm_offset_t)); void pmap_virtual_space __P((vm_offset_t *, vm_offset_t *)); void pmap_redzone __P((void)); @@ -282,7 +280,10 @@ void switchexit __P((vm_map_t, struct user *, int)); int mmu_pagein __P((struct pmap *pm, int, int)); void pmap_writetext __P((unsigned char *, int)); - +#ifndef MACHINE_NEW_NONCONTIG +u_int pmap_free_pages __P((void)); +boolean_t pmap_next_page __P((vm_offset_t *)); +#endif /* SUN4/SUN4C SPECIFIC DECLARATIONS */ diff --git a/sys/arch/sparc/include/vmparam.h b/sys/arch/sparc/include/vmparam.h index 58f41ef67da..fa9a32ddb72 100644 --- a/sys/arch/sparc/include/vmparam.h +++ b/sys/arch/sparc/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.6 1998/08/23 23:07:04 marc Exp $ */ +/* $OpenBSD: vmparam.h,v 1.7 1999/04/22 20:36:21 art Exp $ */ /* $NetBSD: vmparam.h,v 1.13 1997/07/12 16:20:03 perry Exp $ */ /* @@ -143,7 +143,31 @@ #define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES) #define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES) +#if defined(UVM) +#defined MACHINE_NEW_NONCONTIG +#endif + +#ifndef MACHINE_NEW_NONCONTG #define MACHINE_NONCONTIG /* VM <=> pmap interface modifier */ +#endif + +#ifdef MACHINE_NEW_NONCONTIG + +#define VM_PHYSSEG_MAX 32 /* we only have one "hole" */ +#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH +#define VM_PHYSSEG_NOADD /* can't add RAM after vm_mem_init */ + +/* + * pmap specific data stored in the vm_physmem[] array + */ +struct pmap_physseg { + /* NULL */ +}; + +#define VM_NFREELIST 1 +#define VM_FREELIST_DEFAULT 0 + +#endif #if defined (_KERNEL) && !defined(_LOCORE) struct vm_map; |