mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix Sortix::Scheduler::ExitThread not being noreturn.
This commit is contained in:
parent
af2d8cb9de
commit
89118947ed
1 changed files with 6 additions and 1 deletions
|
@ -33,7 +33,12 @@ namespace Scheduler {
|
||||||
void Init();
|
void Init();
|
||||||
void Switch(CPU::InterruptRegisters* regs);
|
void Switch(CPU::InterruptRegisters* regs);
|
||||||
inline static void Yield() { asm volatile ("int $129"); }
|
inline static void Yield() { asm volatile ("int $129"); }
|
||||||
inline static void ExitThread() { asm volatile ("int $132"); }
|
__attribute__ ((noreturn))
|
||||||
|
inline static void ExitThread()
|
||||||
|
{
|
||||||
|
asm volatile ("int $132");
|
||||||
|
__builtin_unreachable();
|
||||||
|
}
|
||||||
void SetThreadState(Thread* thread, Thread::State state);
|
void SetThreadState(Thread* thread, Thread::State state);
|
||||||
Thread::State GetThreadState(Thread* thread);
|
Thread::State GetThreadState(Thread* thread);
|
||||||
void SetIdleThread(Thread* thread);
|
void SetIdleThread(Thread* thread);
|
||||||
|
|
Loading…
Add table
Reference in a new issue