diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-19 06:01:06 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-19 06:01:06 +0000 |
commit | 2a72553b2499b5323f02126dd2e402b447df354a (patch) | |
tree | 0c34c834003fc3bb3ebfea87a6725d5662a353b7 /firmware/thread.c | |
parent | 1b8bb1e05e729a4c92a8126194ef92fb801e2e2c (diff) |
Always clear the status register (irq mask)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1067 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index aee1f6fd5c..f5167872de 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -119,6 +119,7 @@ int create_thread(void* fp, void* sp, int stk_size) /* Subtract 4 to leave room for the PR push in ldctx() Align it on an even 32 bit boundary */ ctxp->regs.sp = (void*)(((unsigned int)sp + stk_size - 4) & ~3); + ctxp->regs.sr = 0; ctxp->regs.pr = fp; } return 0; |