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
|
|
@ -4,6 +4,9 @@
|
|||
|
||||
#include <kernel/types.h>
|
||||
|
||||
#define IA32_STAR 0xC0000081
|
||||
#define IA32_LSTAR 0xC0000082
|
||||
#define IA32_FMASK 0xC0000084
|
||||
#define IA32_GS_BASE 0xC0000101
|
||||
|
||||
u64 rdmsr(u32 msr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue