Ex_regs: Change 'user_flags'
Return true if thread is ready. Was: 'foc_exregs_ret_state.patch'
This commit is contained in:
@@ -418,7 +418,7 @@ Thread::user_ip() const
|
|||||||
IMPLEMENT inline
|
IMPLEMENT inline
|
||||||
Mword
|
Mword
|
||||||
Thread::user_flags() const
|
Thread::user_flags() const
|
||||||
{ return 0; }
|
{ return state() & Thread_ready; }
|
||||||
|
|
||||||
IMPLEMENT inline NEEDS[Thread::exception_triggered]
|
IMPLEMENT inline NEEDS[Thread::exception_triggered]
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ Thread::user_ip() const
|
|||||||
IMPLEMENT inline
|
IMPLEMENT inline
|
||||||
Mword
|
Mword
|
||||||
Thread::user_flags() const
|
Thread::user_flags() const
|
||||||
{ return regs()->flags(); }
|
{ return state() & Thread_ready; }
|
||||||
|
|
||||||
/** Check if the pagefault occured at a special place: At some places in the
|
/** Check if the pagefault occured at a special place: At some places in the
|
||||||
kernel we want to ensure that a specific address is mapped. The regular
|
kernel we want to ensure that a specific address is mapped. The regular
|
||||||
|
|||||||
Reference in New Issue
Block a user