diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-31 00:25:36 -0500 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-31 00:25:36 -0500 |
commit | eadb94693002a2f5435722f2d967d7fa08866a1d (patch) | |
tree | e1f98cc27b8891e939c8f051628c709e4fe056ca /kernel/include/boot/gdt.h | |
parent | 4959f61efcf664f80e8526c834f6ed35413af7ea (diff) |
(misc): Add support for C++
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 |