Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177682994
D28711.1795023117.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
827 B
Referenced Files
None
Subscribers
None
D28711.1795023117.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
@@ -561,6 +561,11 @@
tf->tf_lr = imgp->entry_addr;
tf->tf_elr = imgp->entry_addr;
+ td->td_pcb->pcb_tpidr_el0 = 0;
+ td->td_pcb->pcb_tpidrro_el0 = 0;
+ WRITE_SPECIALREG(tpidrro_el0, 0);
+ WRITE_SPECIALREG(tpidr_el0, 0);
+
#ifdef VFP
vfp_reset_state(td, pcb);
#endif
diff --git a/sys/arm64/linux/linux_sysvec.c b/sys/arm64/linux/linux_sysvec.c
--- a/sys/arm64/linux/linux_sysvec.c
+++ b/sys/arm64/linux/linux_sysvec.c
@@ -365,6 +365,11 @@
#endif
regs->tf_elr = imgp->entry_addr;
+ td->td_pcb->pcb_tpidr_el0 = 0;
+ td->td_pcb->pcb_tpidrro_el0 = 0;
+ WRITE_SPECIALREG(tpidrro_el0, 0);
+ WRITE_SPECIALREG(tpidr_el0, 0);
+
#ifdef VFP
vfp_reset_state(td, td->td_pcb);
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 5:31 PM (19 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41829282
Default Alt Text
D28711.1795023117.diff (827 B)
Attached To
Mode
D28711: aarch64: Clear TLS registers during exec().
Attached
Detach File
Event Timeline