Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152469184
D52576.id162173.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
638 B
Referenced Files
None
Subscribers
None
D52576.id162173.diff
View Options
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -178,7 +178,8 @@
{
uint64_t id_aa64mfr1;
- id_aa64mfr1 = READ_SPECIALREG(id_aa64mmfr1_el1);
+ if (!get_kernel_reg(ID_AA64MMFR1_EL1, &id_aa64mfr1))
+ return (FEAT_ALWAYS_DISABLE);
if (ID_AA64MMFR1_PAN_VAL(id_aa64mfr1) == ID_AA64MMFR1_PAN_NONE)
return (FEAT_ALWAYS_DISABLE);
@@ -209,7 +210,7 @@
CPU_FEAT(feat_pan, "Privileged access never",
pan_check, NULL, pan_enable,
- CPU_FEAT_EARLY_BOOT | CPU_FEAT_PER_CPU);
+ CPU_FEAT_AFTER_DEV | CPU_FEAT_PER_CPU);
bool
has_hyp(void)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 3:59 AM (5 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31576883
Default Alt Text
D52576.id162173.diff (638 B)
Attached To
Mode
D52576: arm64: Move the FEAT_PAN check later
Attached
Detach File
Event Timeline
Log In to Comment