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/sparc64 | |
parent | 0cf5ca3327d0f3f051ffeeedbbf725cdb3b5b201 (diff) |
Add an alignment argument to uvm_map that specifies an alignment hint
for the virtual address.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index bf330f18776..c3ece3e9db5 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.19 2001/11/06 19:53:16 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.20 2001/11/07 01:18:00 art Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -268,7 +268,7 @@ cpu_startup() /* allocate VM for buffers... area is not managed by VM system */ if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size), - NULL, UVM_UNKNOWN_OFFSET, + NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_NORMAL, 0)) != 0) panic("cpu_startup: cannot allocate VM for buffers"); @@ -1622,7 +1622,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags) * our aligment requirements. */ oversize = size + align - PAGE_SIZE; - r = uvm_map(kernel_map, &sva, oversize, NULL, UVM_UNKNOWN_OFFSET, + r = uvm_map(kernel_map, &sva, oversize, NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_NORMAL, 0)); if (r != 0) |