From 50f949d994c33ab23d63bdb9e8a438560ab0b4c4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 30 Nov 2019 21:07:22 +0100 Subject: Working userspace! --- src/kernel/boot.asm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/kernel/boot.asm') diff --git a/src/kernel/boot.asm b/src/kernel/boot.asm index 28e3c38..fc5a859 100644 --- a/src/kernel/boot.asm +++ b/src/kernel/boot.asm @@ -36,10 +36,10 @@ section .text %include "src/kernel/interact.asm" - global switch_to_user - extern test_user - switch_to_user: - sti + global jump_userspace + jump_userspace: + mov ebx, dword [esp+4] + mov ax, 0x23 mov ds, ax mov es, ax @@ -50,8 +50,10 @@ section .text push 0x23 push eax pushf + push 0x1B - push test_user + push ebx + mov ebp, ebx iret section .end_section -- cgit v1.2.3