1
0
Fork 0

Thread: Fixed bug with ResetThread where cpu_registers[15] was being incorrectly set

This commit is contained in:
bunnei 2014-06-05 23:19:55 -04:00
parent aae9fcf4a4
commit b774b8b04e
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ void ResetThread(Thread* t, u32 arg, s32 lowest_priority) {
memset(&t->context, 0, sizeof(ThreadContext));
t->context.cpu_registers[0] = arg;
t->context.pc = t->context.cpu_registers[15] = t->entry_point;
t->context.pc = t->context.reg_15 = t->entry_point;
t->context.sp = t->stack_top;
t->context.cpsr = 0x1F; // Usermode