16 lines
327 B
C
16 lines
327 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _MSR_H_
|
|
#define _MSR_H_
|
|
|
|
#include <kernel/types.h>
|
|
|
|
#define IA32_EFER 0xC0000080
|
|
#define IA32_STAR 0xC0000081
|
|
#define IA32_LSTAR 0xC0000082
|
|
#define IA32_FMASK 0xC0000084
|
|
#define IA32_GS_BASE 0xC0000101
|
|
|
|
u64 rdmsr(u32 msr);
|
|
void wrmsr(u32 msr, u64 val);
|
|
|
|
#endif /* _MSR_H_ */
|