Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149346996
D50571.1789893672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D50571.1789893672.diff
View Options
diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c
--- a/sys/arm64/arm64/identcpu.c
+++ b/sys/arm64/arm64/identcpu.c
@@ -2797,7 +2797,12 @@
install_sys_handler(user_ctr_handler);
install_sys_handler(user_idreg_handler);
}
-SYSINIT(identify_cpu, SI_SUB_CPU, SI_ORDER_MIDDLE, identify_cpu_sysinit, NULL);
+/*
+ * This needs to be after the APs have stareted as they may have errata that
+ * means we need to mask out ID registers & that could affect hwcaps, etc.
+ */
+SYSINIT(identify_cpu, SI_SUB_CONFIGURE, SI_ORDER_ANY, identify_cpu_sysinit,
+ NULL);
static void
cpu_features_sysinit(void *dummy __unused)
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
@@ -263,7 +263,9 @@
{
link_elf_late_ireloc();
}
-SYSINIT(late_ifunc_resolve, SI_SUB_CPU, SI_ORDER_ANY, late_ifunc_resolve, NULL);
+/* Late enough for cpu_feat to have completed */
+SYSINIT(late_ifunc_resolve, SI_SUB_CONFIGURE, SI_ORDER_ANY,
+ late_ifunc_resolve, NULL);
int
cpu_idle_wakeup(int cpu)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 20, 8:41 AM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29798188
Default Alt Text
D50571.1789893672.diff (1 KB)
Attached To
Mode
D50571: arm64: Move users of sanitised ID registers later
Attached
Detach File
Event Timeline
Log In to Comment