31 Commits

Author SHA1 Message Date
EnderIce2
19f2a78d35
linux: Move everything to ./subsystem/linux/* 2024-11-20 03:49:15 +02:00
EnderIce2
7b054050c7
tasking: Do not free tty
It took only 2 months to figure it out that this was causing unexpected crashes... lol
2024-11-19 05:05:41 +02:00
EnderIce2
4d192732cc
tasking: Check for null pointer first 2024-11-19 04:33:47 +02:00
EnderIce2
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
EnderIce2
396ad681ba
tty: Fix kcon & tty implementation; Add stub ptmx 2024-10-13 13:00:22 +03:00
EnderIce2
51ea074b60
Fix driver implementation 2024-07-07 03:14:54 +03:00
EnderIce2
6801475243
Refactor filesystem & stl code 2024-05-18 07:42:01 +03:00
EnderIce2
5a00e91011
Fix signals from exception handler 2024-03-28 03:15:05 +02:00
EnderIce2
8386e44fda
Fix page table update bug in scheduler 2024-03-27 20:35:25 +02:00
EnderIce2
3dc1981820
Implement VirtualAllocation class 2024-03-27 19:51:15 +02:00
EnderIce2
3d1ecc3db0
Rework signal handling code 2024-03-25 23:21:27 +02:00
EnderIce2
ab8ca388bb
Add GetThread() function to PCB class 2024-03-25 15:12:21 +02:00
EnderIce2
3a352045ab
Add more debug messages for Signal 2024-03-20 21:54:58 +02:00
EnderIce2
08458927ac
Refactor Signal handling code 2024-03-20 21:29:02 +02:00
EnderIce2
b35045e7ca
Refactor memory allocation implementation and add KernelReserve flag to memory mappings 2024-03-19 03:57:30 +02:00
EnderIce2
292b022393
Remove unused code and debug information 2024-03-13 17:04:27 +02:00
EnderIce2
2ffd8e3c34
Refactor gsTCB struct for debugging and update usage in related files 2024-03-13 03:41:12 +02:00
EnderIce2
7c4adccf8d
Fix stack align 2024-03-05 00:47:08 +02:00
EnderIce2
3cf4fda68a
Refactor stack handling in thread.cpp 2024-03-05 00:30:54 +02:00
EnderIce2
afd9227f31
Refactor stack pointer alignment in thread.cpp 2024-03-05 00:04:11 +02:00
EnderIce2
c2b595452e
Add InitTrampoline and HasPendingSignal function 2024-03-03 23:58:05 +02:00
EnderIce2
a29bdb9dd0
Add AC flag initialization to thread context 2024-03-03 22:15:23 +02:00
EnderIce2
d3a16469ad
Revise PID and TID generation to align with standards 2024-03-02 00:51:06 +02:00
EnderIce2
525a102f20
Implement GetIdle function in Custom scheduler 2024-03-02 00:16:18 +02:00
EnderIce2
df457e8097
Refactor task scheduler 2024-03-01 22:56:50 +02:00
EnderIce2
ddad5ca38a
Remove ELFSymbolTable from PCB 2024-02-28 06:11:31 +02:00
EnderIce2
3eb25c8e14
Remove unnecessary calls to CPUID.Get() 2024-02-25 18:43:11 +02:00
EnderIce2
5f80e40885
Remove on-screen task manager code 2024-02-10 05:58:21 +02:00
EnderIce2
b0575ba4f2
Rename "SafeFunction" macro to "NoSecurityAnalysis" 2024-02-04 04:31:30 +02:00
EnderIce2
96daa43d38
Update kernel 2024-01-19 06:47:42 +02:00
Alex
889e1522a3
Restructured and rewritten entire codebase 2023-10-09 01:16:24 +03:00