mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
scheduler: handle userland thread exit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user