Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F95549659
D43305.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
D43305.diff
View Options
diff --git a/sys/arm64/arm64/swtch.S b/sys/arm64/arm64/swtch.S
--- a/sys/arm64/arm64/swtch.S
+++ b/sys/arm64/arm64/swtch.S
@@ -148,9 +148,7 @@
mov x21, x2
#ifdef VFP
- /* Load the pcb address */
- mov x1, x4
- bl vfp_save_state
+ bl vfp_save_state_switch
mov x0, x20
#else
mov x0, x1
diff --git a/sys/arm64/arm64/vfp.c b/sys/arm64/arm64/vfp.c
--- a/sys/arm64/arm64/vfp.c
+++ b/sys/arm64/arm64/vfp.c
@@ -216,6 +216,14 @@
vfp_save_state_common(curthread, pcb);
}
+void
+vfp_save_state_switch(struct thread *td)
+{
+ KASSERT(td != NULL, ("NULL vfp thread"));
+
+ vfp_save_state_common(td, td->td_pcb);
+}
+
/*
* Update the VFP state for a forked process or new thread. The PCB will
* have been copied from the old thread.
diff --git a/sys/arm64/include/vfp.h b/sys/arm64/include/vfp.h
--- a/sys/arm64/include/vfp.h
+++ b/sys/arm64/include/vfp.h
@@ -79,6 +79,7 @@
void vfp_restore_state(void);
void vfp_save_state(struct thread *, struct pcb *);
void vfp_save_state_savectx(struct pcb *);
+void vfp_save_state_switch(struct thread *);
struct fpu_kern_ctx;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 22, 11:51 AM (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12449188
Default Alt Text
D43305.diff (1 KB)
Attached To
Mode
D43305: arm64: Create a version of vfp_save_state for cpu_switch
Attached
Detach File
Event Timeline
Log In to Comment