diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-01-05 10:53:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-01 06:26:18 +0100 |
commit | 98c95d15e56d915393434fec1c967227fa489f97 (patch) | |
tree | ad6dd59a062bab7d353b551ce91789ee81c483c9 /cpukit/score/cpu/nios2/nios2-eic-il-low-level.S | |
parent | rtems: Fix implicit type conversions (diff) | |
download | rtems-98c95d15e56d915393434fec1c967227fa489f97.tar.bz2 |
nios2: Fix ISR dispatch variants
The thread dispatch disabled level moved to _Per_CPU_Information some
time ago.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/nios2/nios2-eic-il-low-level.S | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/score/cpu/nios2/nios2-eic-il-low-level.S b/cpukit/score/cpu/nios2/nios2-eic-il-low-level.S index 61eaa8cde6..a8045d74df 100644 --- a/cpukit/score/cpu/nios2/nios2-eic-il-low-level.S +++ b/cpukit/score/cpu/nios2/nios2-eic-il-low-level.S @@ -41,7 +41,6 @@ .section .text .extern _Per_CPU_Information - .extern _Thread_Dispatch_disable_level .extern _Nios2_Thread_dispatch_disabled .extern _Nios2_ISR_Status_interrupts_disabled @@ -50,7 +49,7 @@ _Nios2_ISR_Dispatch_with_shadow_non_preemptive: /* Load thread dispatch disable level */ - ldw r16, %gprel(_Thread_Dispatch_disable_level)(gp) + ldw r16, %gprel(_Per_CPU_Information + PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL)(gp) /* Load high level handler address and argument */ ldw r8, 4(et) @@ -58,7 +57,7 @@ _Nios2_ISR_Dispatch_with_shadow_non_preemptive: /* Increment and store thread dispatch disable level */ addi r9, r16, 1 - stw r9, %gprel(_Thread_Dispatch_disable_level)(gp) + stw r9, %gprel(_Per_CPU_Information + PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL)(gp) /* Call high level handler with argument */ callr r8 @@ -81,7 +80,7 @@ _Nios2_ISR_Dispatch_with_shadow_non_preemptive: * problems if someone deletes or restarts the interrupted thread while * we are in the thread dispatch helper. */ - stw r16, %gprel(_Thread_Dispatch_disable_level)(gp) + stw r16, %gprel(_Per_CPU_Information + PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL)(gp) /* Is thread dispatch allowed? */ bne r16, zero, no_thread_dispatch |