git: fcace5ab088e - main - powerpc/booke: Reserve KVA for minidump working area
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Apr 2024 23:06:25 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=fcace5ab088edfc5b74e0cd9e731639bf07a9437
commit fcace5ab088edfc5b74e0cd9e731639bf07a9437
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2024-04-04 22:23:39 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2024-04-04 23:03:27 +0000
powerpc/booke: Reserve KVA for minidump working area
This was already handled for the AIM64 pmaps, so add the same to
Book-E64 pmap.
---
sys/powerpc/booke/pmap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index 7982876b5594..69edb58ae235 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -749,6 +749,11 @@ mmu_booke_bootstrap(vm_offset_t start, vm_offset_t kernelend)
debugf("ptbl_buf_pool_vabase = 0x%"PRI0ptrX" end = 0x%"PRI0ptrX"\n",
ptbl_buf_pool_vabase, virtual_avail);
#endif
+#ifdef __powerpc64__
+ /* Allocate KVA space for crashdumpmap. */
+ crashdumpmap = (caddr_t)virtual_avail;
+ virtual_avail += MAXDUMPPGS * PAGE_SIZE;
+#endif
/* Calculate corresponding physical addresses for the kernel region. */
phys_kernelend = kernload + kernsize;