Commit fa1cadd2 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

sw64: switch to generic fork like system calls

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5GF7A



--------------------------------

We put thread's callee-saved registers in thread_struct, and put
exception callee-saved registers in pt_regs. For context switch,
it switches fpu state first, and then switches integer registers
in __switch_to.

Because callee-saved registers are always saved and restored, it
will cause a little overhead.

As a result, the special sw64 fork like system calls are removed.

Signed-off-by: default avatarHe Sheng <hesheng@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 687ba666
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment