aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/arch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/arch.c b/arch/x86_64/arch.c
index 0479a52..d7762c2 100644
--- a/arch/x86_64/arch.c
+++ b/arch/x86_64/arch.c
@@ -74,3 +74,8 @@ void regset32(const uint32_t reg, const uint32_t val)
volatile uint32_t *p = (volatile uint32_t *) reg;
*p = val;
}
+
+void gdtset(struct gdtp gdtp)
+{
+ asm volatile("lgdt %0" : : "m" (gdtp));
+}