mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
parent
f90a4a85e0
commit
767d86e6dc
@ -62,6 +62,8 @@ void prepare_reinit_main_thread() { prepare_init_main_thread(); }
|
||||
** Thread **
|
||||
************/
|
||||
|
||||
/* prevent the compiler from optimizing out the 'this' pointer check */
|
||||
__attribute__((optimize("-fno-delete-null-pointer-checks")))
|
||||
Native_utcb *Thread::utcb()
|
||||
{
|
||||
if (this) { return &_stack->utcb(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user