diff options
Diffstat (limited to 'asm')
-rw-r--r-- | asm/asm-offsets.c | 1 | ||||
-rw-r--r-- | asm/head.S | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/asm/asm-offsets.c b/asm/asm-offsets.c index 3440054..e33c181 100644 --- a/asm/asm-offsets.c +++ b/asm/asm-offsets.c @@ -35,6 +35,7 @@ int main(void) OFFSET(CPUTHREAD_PIR, cpu_thread, pir); OFFSET(CPUTHREAD_SAVE_R1, cpu_thread, save_r1); OFFSET(CPUTHREAD_STATE, cpu_thread, state); + OFFSET(CPUTHREAD_CUR_TOKEN, cpu_thread, current_token); OFFSET(STACK_TYPE, stack_frame, type); OFFSET(STACK_LOCALS, stack_frame, locals); @@ -777,6 +777,9 @@ opal_entry: /* Get the CPU thread */ GET_CPU() + /* Store token in CPU thread */ + std %r0,CPUTHREAD_CUR_TOKEN(%r13) + /* Mark the stack frame */ li %r12,STACK_ENTRY_OPAL_API std %r12,STACK_TYPE(%r1) |