mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
arm64: Stop trashing x28 in savectx
While here make it return void, we don't set any useful return value and nothing checks for it. Sponsored by: Arm Ltd (cherry picked from commit a7c5c88cb29ff512467a6599f1b4d8e2b8817480)
This commit is contained in:
parent
78b308e5a4
commit
ce5a07a9d2
2 changed files with 5 additions and 7 deletions
|
|
@ -265,13 +265,11 @@ ENTRY(savectx)
|
|||
mrs x6, tpidr_el0
|
||||
stp x5, x6, [x0, #PCB_SP]
|
||||
|
||||
/* Store the VFP registers */
|
||||
#ifdef VFP
|
||||
mov x28, lr
|
||||
bl vfp_save_state_savectx
|
||||
mov lr, x28
|
||||
#endif
|
||||
|
||||
/* Store the VFP registers */
|
||||
b vfp_save_state_savectx
|
||||
#else
|
||||
ret
|
||||
#endif
|
||||
END(savectx)
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ struct pcb {
|
|||
|
||||
#ifdef _KERNEL
|
||||
void makectx(struct trapframe *tf, struct pcb *pcb);
|
||||
int savectx(struct pcb *pcb) __returns_twice;
|
||||
void savectx(struct pcb *pcb) __returns_twice;
|
||||
#endif
|
||||
|
||||
#endif /* !LOCORE */
|
||||
|
|
|
|||
Loading…
Reference in a new issue