Xyris  0.5
Flush.h
Go to the documentation of this file.
1 /**
2  * @file Flush.h
3  * @author Keeton Feavel ([email protected])
4  * @brief Header for assembly functions defined in flush.s
5  * @version 0.1
6  * @date 2022-01-03
7  *
8  * @copyright Copyright the Xyris Contributors (c) 2022
9  *
10  */
11 #pragma once
12 #include <stdint.h>
13 
14 extern "C" {
15 
16 /**
17  * @brief Flush the global descriptor table and use the one provided
18  *
19  * @param gdt Address of global descriptor table to be used
20  */
21 void gdt_flush(uintptr_t gdt);
22 
23 /**
24  * @brief Flush the TSS when we (re)load into the kernel or into userspace.
25  *
26  */
27 void tss_flush(void);
28 
29 }
GDT::gdt
struct Entry gdt[ARCH_GDT_MAX_ENTRIES]
Definition: gdt.cpp:19
gdt_flush
void gdt_flush(uintptr_t gdt)
Flush the global descriptor table and use the one provided.
tss_flush
void tss_flush(void)
Flush the TSS when we (re)load into the kernel or into userspace.