diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-05-27 09:03:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-05-27 09:03:23 +0000 |
commit | 80528ad37ec7396a794947a41ce6c77c3224f30e (patch) | |
tree | b1c0b32e5703d190a34134411421a80b07d00953 /sys/arch | |
parent | ec9ea1f7c01dea426fee65f176228d4e835608ea (diff) |
Claim physical memory allocated during early bootstrap from the PROM.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/pmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index 2e3cf9717c4..0afbbab9e8b 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.100 2017/05/03 12:27:00 dlg Exp $ */ +/* $OpenBSD: pmap.c,v 1.101 2017/05/27 09:03:22 kettenis Exp $ */ /* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */ #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ /* @@ -2870,6 +2870,7 @@ pmap_get_page(paddr_t *pa, const char *wait, struct pmap *pm) *pa = VM_PAGE_TO_PHYS(pg); } else { uvm_page_physget(pa); + prom_claim_phys(*pa, PAGE_SIZE); pmap_zero_phys(*pa); } |