Commit Graph

8 Commits

Author SHA1 Message Date
86a119ea51 scheduler: Fix page table switch for scheduler
The userspace process may map pages where the kernel has allocated data and cause a crash.

This patch fixes this issue by having a separate IRQ handler which sets the kernel page table at the start of SchedulerInterruptHandler() and restores it in SchedulerHandlerStub() function.
2024-11-17 03:11:20 +02:00
85b6fdef80 Implement Virtual Terminal and fix /dev/kcon 2024-09-22 13:17:19 +03:00
7d1041a3bd Refactor interrupt handling code 2024-03-13 18:46:01 +02:00
f34f6f94c6 Change the IDT table to use interrupt gate 2024-02-28 04:48:05 +02:00
1bc7c4b4dd Fix ExceptionHandlerStub to work with CPU::ExceptionFrame 2024-02-15 22:09:33 +02:00
96daa43d38 Update kernel 2024-01-19 06:47:42 +02:00
cfee4807c4 ISR 0x1 should have RING3 2023-10-20 01:42:24 +03:00
889e1522a3 Restructured and rewritten entire codebase 2023-10-09 01:16:24 +03:00