vbos/include/kernel/msr.h
2024-06-27 14:59:55 -04:00

20 lines
398 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _MSR_H_
#define _MSR_H_
#include <kernel/common.h>
#define MSR_APIC_BASE 0x1B
#define MSR_IA32_EFER 0xC0000080
#define MSR_IA32_STAR 0xC0000081
#define MSR_IA32_LSTAR 0xC0000082
#define MSR_IA32_FMASK 0xC0000084
#ifndef __ASM__
uint64_t rdmsr(uint32_t msr);
void wrmsr(uint32_t msr, uint64_t val);
#endif /* __ASM__ */
#endif /* _MSR_H_ */