13a5c0e445
Utilities: Start moving utilities into specific headers in a utils/ subdirectory
2022-10-14 17:21:16 +02:00
b3e16068ef
Kernel: Add Utilities::get_rflags(), and thus Interrupts::are_enabled()
2022-10-12 12:56:55 +02:00
1ecd24f5d6
Kernel: Add SSE support (enable SSE on boot and save context (user tasks only) on task switch)
2022-10-02 18:53:54 +02:00
9012ccc49e
Remove _userspace and move the idle task to assembly
2022-10-01 12:16:30 +02:00
ef5994e389
Proper userspace program
2022-09-29 20:06:18 +02:00
9716891eff
do not fault in the userspace demo >.<
2022-09-29 19:20:31 +02:00
f25014a8ed
refine syscalls
2022-09-29 19:17:43 +02:00
6c036dfe99
Modify the userspace task
2022-09-27 19:51:01 +02:00
f1a7138568
User mode (with a few syscalls)
...
IT ACTUALLY WORKS NOW.
Why wasn't it working? Oh, because I was not setting already present page tables's permissions to user mode. Just a little bug. THAT I SPENT DAYS TRYING TO FIND
Anyways, it works now. Such a relief...
2022-09-25 20:35:05 +02:00
aad9aa1db5
Start the call stack with a null RBP before calling _start
2022-09-18 17:03:29 +02:00