diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-07 01:18:02 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-07 01:18:02 +0000 |
commit | c1c5c105f41ad5a43d2d86df94c7b57a4e86d03f (patch) | |
tree | f35ef0cfc30ec497901dac2701302652e736c1f4 /sys/arch/mac68k | |
parent | 0cf5ca3327d0f3f051ffeeedbbf725cdb3b5b201 (diff) |
Add an alignment argument to uvm_map that specifies an alignment hint
for the virtual address.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/pmap.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index 125f24ec8b7..b6a352e16f1 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.84 2001/11/06 19:53:15 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.85 2001/11/07 01:18:00 art Exp $ */ /* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */ /* @@ -457,8 +457,8 @@ again: */ size = MAXBSIZE * nbuf; if (uvm_map(kernel_map, (vm_offset_t *) &buffers, round_page(size), - NULL, UVM_UNKNOWN_OFFSET, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, - UVM_INH_NONE, UVM_ADV_NORMAL, 0)) != KERN_SUCCESS) + NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, + UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_NORMAL, 0)) != KERN_SUCCESS) panic("startup: cannot allocate VM for buffers"); minaddr = (vm_offset_t)buffers; base = bufpages / nbuf; diff --git a/sys/arch/mac68k/mac68k/pmap.c b/sys/arch/mac68k/mac68k/pmap.c index 09abc463719..299f88522b1 100644 --- a/sys/arch/mac68k/mac68k/pmap.c +++ b/sys/arch/mac68k/mac68k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.30 2001/11/06 02:07:59 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.31 2001/11/07 01:18:00 art Exp $ */ /* $NetBSD: pmap.c,v 1.55 1999/04/22 04:24:53 chs Exp $ */ /* @@ -338,14 +338,14 @@ pmap_init() addr = (vaddr_t)IOBase; if (uvm_map(kernel_map, &addr, m68k_ptob(IIOMAPSIZE + ROMMAPSIZE + VIDMAPSIZE), - NULL, UVM_UNKNOWN_OFFSET, + NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED)) != KERN_SUCCESS) goto bogons; addr = (vaddr_t)Sysmap; if (uvm_map(kernel_map, &addr, MAC_MAX_PTSIZE, - NULL, UVM_UNKNOWN_OFFSET, + NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED)) != KERN_SUCCESS) { @@ -419,7 +419,7 @@ pmap_init() * we already have kernel PT pages. */ addr = 0; - rv = uvm_map(kernel_map, &addr, s, NULL, UVM_UNKNOWN_OFFSET, + rv = uvm_map(kernel_map, &addr, s, NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_NOMERGE)); if (rv != KERN_SUCCESS || (addr + s) >= (vaddr_t)Sysmap) |