diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-10 17:24:13 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-10 17:24:13 +0200 |
| commit | 242fe4a5752bf66ae4c00438f5e9ce66b0774c38 (patch) | |
| tree | d27d2e1fda93643eaaf249e05a6f3a35e07a67f0 /src/utils/gdt.h | |
| parent | c6aa00eea71c91a219dae8688530ff0a3b83bcd4 (diff) | |
Enable tasks execution and syscalls
Diffstat (limited to 'src/utils/gdt.h')
| -rw-r--r-- | src/utils/gdt.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/gdt.h b/src/utils/gdt.h index 01a01bf..f010891 100644 --- a/src/utils/gdt.h +++ b/src/utils/gdt.h @@ -3,6 +3,8 @@ #include "types.h" +#define GDT_MAX_ENTRIES 8 + // Access byte #define GDT_AC 1 // Access bit #define GDT_RW 1 << 1 // Read/Write bit @@ -70,4 +72,6 @@ void gdt_memcpy(); */ void gdt_write_entry(GDT_ENTRY entry, u32 id); +int gdt_user_ds_base(); + #endif |
