Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108331896
D44317.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D44317.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
@@ -920,6 +920,22 @@
update_special_regs(0);
+ /* Set the pcpu data, this is needed by pmap_bootstrap */
+ pcpup = &pcpu0;
+ pcpu_init(pcpup, 0, sizeof(struct pcpu));
+
+ /*
+ * Set the pcpu pointer with a backup in tpidr_el1 to be
+ * loaded when entering the kernel from userland.
+ */
+ __asm __volatile(
+ "mov x18, %0 \n"
+ "msr tpidr_el1, %0" :: "r"(pcpup));
+
+ /* locore.S sets sp_el0 to &thread0 so no need to set it here. */
+ PCPU_SET(curthread, &thread0);
+ PCPU_SET(midr, get_midr());
+
link_elf_ireloc(kmdp);
#ifdef FDT
try_load_dtb(kmdp);
@@ -952,22 +968,6 @@
physmem_exclude_region(efifb->fb_addr, efifb->fb_size,
EXFLAG_NOALLOC);
- /* Set the pcpu data, this is needed by pmap_bootstrap */
- pcpup = &pcpu0;
- pcpu_init(pcpup, 0, sizeof(struct pcpu));
-
- /*
- * Set the pcpu pointer with a backup in tpidr_el1 to be
- * loaded when entering the kernel from userland.
- */
- __asm __volatile(
- "mov x18, %0 \n"
- "msr tpidr_el1, %0" :: "r"(pcpup));
-
- /* locore.S sets sp_el0 to &thread0 so no need to set it here. */
- PCPU_SET(curthread, &thread0);
- PCPU_SET(midr, get_midr());
-
/* Do basic tuning, hz etc */
init_param1();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 10:41 PM (2 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16107668
Default Alt Text
D44317.diff (1 KB)
Attached To
Mode
D44317: Changed order of arm64 events such that TSLOG-enabled kernels are able to boot
Attached
Detach File
Event Timeline
Log In to Comment