aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.asm
diff options
context:
space:
mode:
authorMarvin Borner2021-03-14 16:12:44 +0100
committerGitHub2021-03-14 16:12:44 +0100
commit268f3ccdb90ab4b9bd70ca176478797aae97ca05 (patch)
tree2dbc3e52d90dab4aae8021773f09b6b72a74b8cb /kernel/features/proc.asm
parent4309322f9d2b3e31421a3cc5399ab1f4368e0652 (diff)
parent6dec7db5158447b66f31a3f786ce2916cab83cec (diff)
Added memory management using paging
This was quite a roller-coaster and most things are slower now, but it works and is way more secure. I still need to implement things like shared memory for the WM/GUI system but other than that everything is supported.
Diffstat (limited to 'kernel/features/proc.asm')
-rw-r--r--kernel/features/proc.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/features/proc.asm b/kernel/features/proc.asm
index 1a2ba65..dfc3448 100644
--- a/kernel/features/proc.asm
+++ b/kernel/features/proc.asm
@@ -28,3 +28,9 @@ proc_jump_userspace:
push dword [_eip]
iret
+
+global paging_invalidate_tlb
+paging_invalidate_tlb:
+ mov eax, cr3
+ mov cr3, eax
+ ret