From 242fe4a5752bf66ae4c00438f5e9ce66b0774c38 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 10 Apr 2021 17:24:13 +0200 Subject: Enable tasks execution and syscalls --- src/utils/gdt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils/gdt.h') 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 -- cgit v1.2.3