proc: add context switching
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
c01b1d7eee
commit
a73fc47664
4 changed files with 46 additions and 17 deletions
|
|
@ -15,9 +15,11 @@ struct cpu_local {
|
|||
struct pt_regs {
|
||||
u64 rax;
|
||||
u64 rbx;
|
||||
u64 rcx;
|
||||
u64 rdx;
|
||||
u64 rdi;
|
||||
u64 rsi;
|
||||
u64 rbp;
|
||||
u64 r8;
|
||||
u64 r9;
|
||||
u64 r10;
|
||||
|
|
@ -26,6 +28,8 @@ struct pt_regs {
|
|||
u64 r13;
|
||||
u64 r14;
|
||||
u64 r15;
|
||||
u64 rsp;
|
||||
u64 rip;
|
||||
} PACKED;
|
||||
|
||||
#endif /* _ARCH_PROC_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue