summaryrefslogtreecommitdiff
path: root/sys/arch/amiga
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-08 11:42:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-08 11:42:45 +0000
commit7e347f82fe6d8d8a6c1b966dd4c21e6bb4a93160 (patch)
tree6a7e791686a578e9ce4fb34969387e55c2510080 /sys/arch/amiga
parent2b73091759500b431b658e33187a199820ee7d4d (diff)
Fixes to submap allocation.
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r--sys/arch/amiga/amiga/pmap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/arch/amiga/amiga/pmap.c b/sys/arch/amiga/amiga/pmap.c
index 987e9000c67..9f0358648e9 100644
--- a/sys/arch/amiga/amiga/pmap.c
+++ b/sys/arch/amiga/amiga/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.23 2000/05/30 10:39:33 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.24 2000/11/08 11:42:44 art Exp $ */
/* $NetBSD: pmap.c,v 1.39 1997/06/10 18:26:41 veego Exp $ */
/*
@@ -238,9 +238,9 @@ u_int *Segtabzero, *Segtabzeropa;
vm_size_t Sysptsize = VM_KERNEL_PT_PAGES + 4 / NPTEPG;
struct pmap kernel_pmap_store;
-vm_map_t st_map, pt_map;
+vm_map_t pt_map;
#if defined(UVM)
-struct vm_map st_map_store, pt_map_store;
+struct vm_map pt_map_store;
#endif
vm_size_t mem_size; /* memory size in bytes */
@@ -643,10 +643,6 @@ bogons:
/*
* Allocate the segment table map and the page table map.
*/
- s = maxproc * AMIGA_STSIZE;
- st_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
- FALSE, &st_map_store);
-
addr = AMIGA_UPTBASE;
if ((AMIGA_UPTMAXSIZE / AMIGA_MAX_PTSIZE) < maxproc) {
s = AMIGA_UPTMAXSIZE;
@@ -659,7 +655,7 @@ bogons:
maxproc = (AMIGA_UPTMAXSIZE / AMIGA_MAX_PTSIZE);
} else
s = (maxproc * AMIGA_MAX_PTSIZE);
- pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
+ pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, VM_MAP_PAGEABLE,
TRUE, &pt_map_store);
#else
/*