From 49bfa624ac861d7fafc87f06dc2cdf4972aed854 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 25 Aug 2018 19:38:08 +0000 Subject: Eliminate the arena parameter to kmem_free(). Implicitly this corrects an error in the function hypercall_memfree(), where the wrong arena was being passed to kmem_free(). Introduce a per-page flag, VPO_KMEM_EXEC, to mark physical pages that are mapped in kmem with execute permissions. Use this flag to determine which arena the kmem virtual addresses are returned to. Eliminate UMA_SLAB_KRWX. The introduction of VPO_KMEM_EXEC makes it redundant. Update the nearby comment for UMA_SLAB_KERNEL. Reviewed by: kib, markj Discussed with: jeff Approved by: re (marius) Differential Revision: https://reviews.freebsd.org/D16845 --- sys/arm64/arm64/mp_machdep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/arm64/arm64/mp_machdep.c') diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c index a3f096f60717..aa067d0194e4 100644 --- a/sys/arm64/arm64/mp_machdep.c +++ b/sys/arm64/arm64/mp_machdep.c @@ -502,8 +502,7 @@ start_cpu(u_int id, uint64_t target_cpu) ("Failed to start CPU %u (%lx)\n", id, target_cpu)); pcpu_destroy(pcpup); - kmem_free(kernel_arena, (vm_offset_t)dpcpu[cpuid - 1], - DPCPU_SIZE); + kmem_free((vm_offset_t)dpcpu[cpuid - 1], DPCPU_SIZE); dpcpu[cpuid - 1] = NULL; mp_ncpus--; -- cgit v1.2.3