Fix Sortix::Scheduler::ExitThread not being noreturn.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-07-08 14:34:55 +02:00
parent af2d8cb9de
commit 89118947ed
1 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,12 @@ namespace Scheduler {
void Init();
void Switch(CPU::InterruptRegisters* regs);
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);
Thread::State GetThreadState(Thread* thread);
void SetIdleThread(Thread* thread);