diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-05-17 14:54:16 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-05-17 14:54:16 +0000 |
commit | d88b46de205defa390a02a73b1abad70fcc838f0 (patch) | |
tree | ccf49ae49b268d62eaf594b6f80176f73ca33f03 /sys | |
parent | c5f1d6b9fbcb279e32f5dffcfa18201bae95979d (diff) |
Hand those pages over to uvm.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc64/include/vmparam.h | 3 | ||||
-rw-r--r-- | sys/arch/powerpc64/powerpc64/machdep.c | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc64/include/vmparam.h b/sys/arch/powerpc64/include/vmparam.h index c1f722a4202..6dc534a87a4 100644 --- a/sys/arch/powerpc64/include/vmparam.h +++ b/sys/arch/powerpc64/include/vmparam.h @@ -38,7 +38,8 @@ */ #define USRIOSIZE 300 -#define VM_PHYSSEG_MAX 32 +#define VM_PHYSSEG_MAX 32 +#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE) #define VM_MAXUSER_ADDRESS 0xbfffffffffffffffUL diff --git a/sys/arch/powerpc64/powerpc64/machdep.c b/sys/arch/powerpc64/powerpc64/machdep.c index d3e8e4ef845..11b0bfd01de 100644 --- a/sys/arch/powerpc64/powerpc64/machdep.c +++ b/sys/arch/powerpc64/powerpc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.3 2020/05/17 12:01:11 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.4 2020/05/17 14:54:15 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -152,15 +152,14 @@ init_powernv(void *fdt) reg.size = round_page((paddr_t)fdt + fdt_get_size(fdt)) - reg.addr; memreg_remove(®); + uvm_setpagesize(); + for (i = 0; i < nmemreg; i++) { paddr_t start = memreg[i].addr; paddr_t end = start + memreg[i].size; - printf("0x%016lx - 0x%016lx\n", start, end - 1); -#ifdef notyet uvm_page_physload(atop(start), atop(end), atop(start), atop(end), 0); -#endif physmem += atop(end - start); } |