CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2022/11/21 13:19:21
Modified files: sys/arch/arm64/arm64: machdep.c pmap.c sys/arch/arm64/include: pmap.h Log message: Get rid of pmap_map_early(). This is part of my crusade against the use of 1G mappings for the PA = VA identity mapping used in the early boot phase of the kernel and when spinning up CPUs. The mappings are dangerous since they might (unintentially) covering address ranges that should not be mapped (i.e. secure memory) which is dangerous on arm64 since the architecture allows speculative access to any address for which a valid mapping exists and even speculative access may cause the machine to misbehave. So instead of relying on the PA = VA identity mapping, call pmap_bootstrap() earlier such that we can use pmap_kenter_cache() to enter mappings for the FDT. ok miod@