summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-12-21 17:54:31 -0500
committerIan Moffett <ian@osmora.org>2025-12-21 17:54:31 -0500
commitbfbce336729d1597950d741b9d5ab469d625b2d9 (patch)
tree9c282c0059ec6c44908333d64e376c1c2a307e5a
parent258c10c3c021ea275493d54ff39bd18adbb73291 (diff)
mos/x86_64: Add model specific register definitions
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--mos/sys/inc/arch/x86_64/msr.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/mos/sys/inc/arch/x86_64/msr.h b/mos/sys/inc/arch/x86_64/msr.h
new file mode 100644
index 0000000..4ccf3c8
--- /dev/null
+++ b/mos/sys/inc/arch/x86_64/msr.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2025, Ian Moffett.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef _MACHINE_MSR_H_
+#define _MACHINE_MSR_H_ 1
+
+#define IA32_APIC_BASE 0x0000001B
+#define IA32_GS_BASE 0xC0000101
+#define IA32_MTRR_CAP 0x000000FE
+#define IA32_DEF_TYPE 0x000002FF
+#define IA32_MTRR_PHYSBASE 0x00000200
+#define IA32_MTRR_PHYSMASK 0x00000201
+#define IA32_KERNEL_GS_BASE 0xC0000102
+#define IA32_EFER 0xC0000080
+
+#endif /* !_MACHINE_MSR_H_ */