git: 9d4cff787ecb - main - Remove pre-armv6 support from devmap
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Oct 2022 09:11:09 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=9d4cff787ecbfb8afba09a7b60e65d1fbefa5ded commit 9d4cff787ecbfb8afba09a7b60e65d1fbefa5ded Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-10-05 08:53:12 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-10-05 08:56:17 +0000 Remove pre-armv6 support from devmap Remove an old code path that was used used by Armv4/5 so is unused now. Sponsored by: The FreeBSD Foundation --- sys/kern/subr_devmap.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/subr_devmap.c b/sys/kern/subr_devmap.c index df72e49f4de5..837939923c8b 100644 --- a/sys/kern/subr_devmap.c +++ b/sys/kern/subr_devmap.c @@ -193,13 +193,8 @@ devmap_bootstrap(vm_offset_t l1pt, const struct devmap_entry *table) for (pd = devmap_table; pd->pd_size != 0; ++pd) { #if defined(__arm__) -#if __ARM_ARCH >= 6 pmap_preboot_map_attr(pd->pd_pa, pd->pd_va, pd->pd_size, VM_PROT_READ | VM_PROT_WRITE, VM_MEMATTR_DEVICE); -#else - pmap_map_chunk(l1pt, pd->pd_va, pd->pd_pa, pd->pd_size, - VM_PROT_READ | VM_PROT_WRITE, PTE_DEVICE); -#endif #elif defined(__aarch64__) || defined(__riscv) pmap_kenter_device(pd->pd_va, pd->pd_size, pd->pd_pa); #endif