forked from Bananymous/banan-os
Kernel: Rewrite whole scheduler
Current context saving was very hacky and dependant on compiler behaviour that was not consistent. Now we always use iret for context saving. This makes everything more clean.
This commit is contained in:
@@ -14,4 +14,24 @@ namespace Kernel
|
||||
uintptr_t ss;
|
||||
};
|
||||
|
||||
struct InterruptRegisters
|
||||
{
|
||||
uintptr_t r15;
|
||||
uintptr_t r14;
|
||||
uintptr_t r13;
|
||||
uintptr_t r12;
|
||||
uintptr_t r11;
|
||||
uintptr_t r10;
|
||||
uintptr_t r9;
|
||||
uintptr_t r8;
|
||||
|
||||
uintptr_t rdi;
|
||||
uintptr_t rsi;
|
||||
uintptr_t rbp;
|
||||
uintptr_t rbx;
|
||||
uintptr_t rdx;
|
||||
uintptr_t rcx;
|
||||
uintptr_t rax;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user