scheduler: handle userland thread exit

This commit is contained in:
Matheus
2024-04-14 14:00:11 -03:00
parent d33ef16f87
commit 2cb94c2c2e
5 changed files with 68 additions and 37 deletions
+1
View File
@@ -98,5 +98,6 @@ void arch_context_saveandcall(void (*fn)(context_t *context), void *stack);
asm("ldmxcsr (%%rax)" : : "a"(&(t)->extracontext.mxcsr));
#define ARCH_CONTEXT_INTSTATUS(x) ((x)->rflags & 0x200 ? true : false)
#define ARCH_CONTEXT_ISUSER(x) ((x)->cs == 0x23)
#endif