diff options
Diffstat (limited to 'kernel/include/boot/gdt.h')
-rw-r--r-- | kernel/include/boot/gdt.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/include/boot/gdt.h b/kernel/include/boot/gdt.h index e79ca48..607b4e8 100644 --- a/kernel/include/boot/gdt.h +++ b/kernel/include/boot/gdt.h @@ -19,9 +19,8 @@ #ifndef __boot_gdt_h #define __boot_gdt_h -#include <stdint.h> - #include <common.h> +#include <stdint.h> /* Access Flags: * 7 PRESENT @@ -88,6 +87,10 @@ ((base >> 24) & 0xff) /* base_high */ \ } +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { uint16_t limit_low; uint16_t base_low; @@ -105,4 +108,8 @@ typedef struct { extern void _GDT_flush(GDT_descriptor_t *GDT_descriptor); void GDT_load(void); +#ifdef __cplusplus +} +#endif + #endif |