12 lines
209 B
C
12 lines
209 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _MSR_H_
|
|
#define _MSR_H_
|
|
|
|
#include <kernel/types.h>
|
|
|
|
#define IA32_GS_BASE 0xC0000101
|
|
|
|
u64 rdmsr(u32 msr);
|
|
void wrmsr(u32 msr, u64 val);
|
|
|
|
#endif /* _MSR_H_ */
|