aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/freescale
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2018-08-25 19:38:08 +0000
committerAlan Cox <alc@FreeBSD.org>2018-08-25 19:38:08 +0000
commit49bfa624ac861d7fafc87f06dc2cdf4972aed854 (patch)
tree67c3d87a41a1d37c805695647c6c1502e3a81c80 /sys/arm/freescale
parentee6281c3d385306e6b6a7cc272f122154d409cba (diff)
downloadsrc-49bfa624ac861d7fafc87f06dc2cdf4972aed854.tar.gz
src-49bfa624ac861d7fafc87f06dc2cdf4972aed854.zip
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
Notes
Notes: svn path=/head/; revision=338318
Diffstat (limited to 'sys/arm/freescale')
-rw-r--r--sys/arm/freescale/imx/imx6_sdma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arm/freescale/imx/imx6_sdma.c b/sys/arm/freescale/imx/imx6_sdma.c
index 6566151e68a4..3bae225a75d5 100644
--- a/sys/arm/freescale/imx/imx6_sdma.c
+++ b/sys/arm/freescale/imx/imx6_sdma.c
@@ -196,8 +196,7 @@ sdma_free(int chn)
channel = &sc->channel[chn];
channel->in_use = 0;
- kmem_free(kernel_arena, (vm_offset_t)channel->bd,
- PAGE_SIZE);
+ kmem_free((vm_offset_t)channel->bd, PAGE_SIZE);
return (0);
}