diff options
author | andrew <andrew@FreeBSD.org> | 2015-08-20 12:49:56 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-08-20 12:49:56 +0000 |
commit | cf78c76d8fe10139f70624c7ebf92be073365f2b (patch) | |
tree | 6472459c5cdca6c9150980c32631de38717f166e /sys/vm | |
parent | 04ea917e5307d2a903709f80cace88ee0262f84e (diff) | |
download | FreeBSD-src-cf78c76d8fe10139f70624c7ebf92be073365f2b.zip FreeBSD-src-cf78c76d8fe10139f70624c7ebf92be073365f2b.tar.gz |
Add the kernel support for minidumps on arm64.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3318
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_page.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 3b58fb7..cf05452 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -479,8 +479,8 @@ vm_page_startup(vm_offset_t vaddr) bzero((void *)mapped, end - new_end); uma_startup((void *)mapped, boot_pages); -#if defined(__amd64__) || defined(__i386__) || defined(__arm__) || \ - defined(__mips__) +#if defined(__aarch64__) || defined(__amd64__) || defined(__arm__) || \ + defined(__i386__) || defined(__mips__) /* * Allocate a bitmap to indicate that a random physical page * needs to be included in a minidump. @@ -557,12 +557,12 @@ vm_page_startup(vm_offset_t vaddr) */ new_end = vm_reserv_startup(&vaddr, new_end, high_water); #endif -#if defined(__amd64__) || defined(__mips__) +#if defined(__aarch64__) || defined(__amd64__) || defined(__mips__) /* - * pmap_map on amd64 and mips can come out of the direct-map, not kvm - * like i386, so the pages must be tracked for a crashdump to include - * this data. This includes the vm_page_array and the early UMA - * bootstrap pages. + * pmap_map on arm64, amd64, and mips can come out of the direct-map, + * not kvm like i386, so the pages must be tracked for a crashdump to + * include this data. This includes the vm_page_array and the early + * UMA bootstrap pages. */ for (pa = new_end; pa < phys_avail[biggestone + 1]; pa += PAGE_SIZE) dump_add_page(pa); |