aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/gdt.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 18:53:36 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 18:53:36 +0100
commit0ea68568372b7b7b20bca6985ae4b36e8c99c0e9 (patch)
tree832f7f4ac8e2537cf5aee531634d01499bb4a318 /src/kernel/include/gdt.h
parent7aafc22a01de5cabb99aed76782f6c0999b7de05 (diff)
downloadkogata-0ea68568372b7b7b20bca6985ae4b36e8c99c0e9.tar.gz
kogata-0ea68568372b7b7b20bca6985ae4b36e8c99c0e9.zip
Implement switching to usermode.
Diffstat (limited to 'src/kernel/include/gdt.h')
-rw-r--r--src/kernel/include/gdt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/include/gdt.h b/src/kernel/include/gdt.h
index a62d0db..048accd 100644
--- a/src/kernel/include/gdt.h
+++ b/src/kernel/include/gdt.h
@@ -9,6 +9,8 @@
void gdt_init();
+void set_kernel_stack(void* addr);
+
#define K_CODE_SEGMENT 0x08
#define K_DATA_SEGMENT 0x10
#define U_CODE_SEGMENT 0x18