diff options
| author | leo <leo@NetBSD.org> | 1998-05-07 07:25:51 +0000 |
|---|---|---|
| committer | leo <leo@NetBSD.org> | 1998-05-07 07:25:51 +0000 |
| commit | 4eb4a78df8a4899f03ff271eccb41c4bd217d7c4 (patch) | |
| tree | 7ac223cab0a49721ea9b03bfe1d4729c956c3795 /sys/arch/atari/include | |
| parent | 10a773225e6702770ab46fcefb65474f8687fced (diff) | |
Implement MACHINE_NEW_NONCONTIG. Implementation is based on Ignatios' amiga
implementation and Chuck's conversion description.
Diffstat (limited to 'sys/arch/atari/include')
| -rw-r--r-- | sys/arch/atari/include/pmap.h | 9 | ||||
| -rw-r--r-- | sys/arch/atari/include/vmparam.h | 18 |
2 files changed, 18 insertions, 9 deletions
diff --git a/sys/arch/atari/include/pmap.h b/sys/arch/atari/include/pmap.h index 476521df995..68cd4e25ced 100644 --- a/sys/arch/atari/include/pmap.h +++ b/sys/arch/atari/include/pmap.h @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.h,v 1.17 1998/02/18 02:05:33 cgd Exp $ */ +/* $NetBSD: pmap.h,v 1.18 1998/05/07 07:26:05 leo Exp $ */ /* * Copyright (c) 1987 Carnegie-Mellon University @@ -149,13 +149,6 @@ u_int *Sysmap; char *vmmap; /* map for mem, dumps, etc. */ struct pmap kernel_pmap_store; -#ifdef MACHINE_NONCONTIG -#define pa_index(pa) pmap_page_index(pa) -#else -#define pa_index(pa) atop(pa - vm_first_phys) -#endif /* MACHINE_NONCONTIG */ - -#define pa_to_pvh(pa) (&pv_table[pa_index(pa)]) #define pmap_kernel() (&kernel_pmap_store) #define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count) diff --git a/sys/arch/atari/include/vmparam.h b/sys/arch/atari/include/vmparam.h index f22306aa3f1..1a1858242dc 100644 --- a/sys/arch/atari/include/vmparam.h +++ b/sys/arch/atari/include/vmparam.h @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.4 1997/10/10 11:05:53 leo Exp $ */ +/* $NetBSD: vmparam.h,v 1.5 1998/05/07 07:26:05 leo Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -156,6 +156,22 @@ #define VM_PHYS_SIZE (USRIOSIZE*CLBYTES) /* + * Our bootloader currently passes up to 2 segments (ST and TT ram). + */ +#define VM_PHYSSEG_MAX (2) +#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM +#define VM_PHYSSEG_NOADD + +/* + * pmap-specific data stored in the vm_physmem[] array. + */ +struct pmap_physseg { + struct pv_entry *pvent; /* pv table for this seg */ + char *attrs; /* page attributes for this seg */ +}; + + +/* * number of kernel PT pages (initial only, can grow dynamically) */ #define VM_KERNEL_PT_PAGES ((vm_size_t)2) /* XXX: SYSPTSIZE */ |
