Revert an arm64 change that sneaked in with r295464.
This commit is contained in:
parent
fde0af719b
commit
d664515e68
@ -129,6 +129,12 @@ END(cpu_throw)
|
|||||||
* x3 to x7, x16 and x17 are caller saved
|
* x3 to x7, x16 and x17 are caller saved
|
||||||
*/
|
*/
|
||||||
ENTRY(cpu_switch)
|
ENTRY(cpu_switch)
|
||||||
|
/* Store the new curthread */
|
||||||
|
str x1, [x18, #PC_CURTHREAD]
|
||||||
|
/* And the new pcb */
|
||||||
|
ldr x4, [x1, #TD_PCB]
|
||||||
|
str x4, [x18, #PC_CURPCB]
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Save the old context.
|
* Save the old context.
|
||||||
*/
|
*/
|
||||||
@ -168,15 +174,10 @@ ENTRY(cpu_switch)
|
|||||||
mov x0, x19
|
mov x0, x19
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Store the new curthread */
|
|
||||||
str x1, [x18, #PC_CURTHREAD]
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Restore the saved context and save it as the curpcb.
|
* Restore the saved context.
|
||||||
*/
|
*/
|
||||||
ldr x4, [x1, #TD_PCB]
|
ldr x4, [x1, #TD_PCB]
|
||||||
str x4, [x18, #PC_CURPCB]
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: We may need to flush the cache here if switching
|
* TODO: We may need to flush the cache here if switching
|
||||||
|
Loading…
Reference in New Issue
Block a user