diff options
Diffstat (limited to 'os/thread.h')
-rw-r--r-- | os/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/thread.h b/os/thread.h index 2213d6f..7486d01 100644 --- a/os/thread.h +++ b/os/thread.h @@ -46,7 +46,7 @@ class Thread { sp->lr_ex = 0xfffffff9; // frame->lr = thread exit handler - sp->pc = (uint32_t)func; + sp->pc = (uint32_t)func & ~1; sp->psr = 0x01000000; } |