diff options
author | Jan Sommer <jan.sommer@dlr.de> | 2020-05-31 16:22:54 +0200 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-06-11 13:29:03 +1000 |
commit | 8937f12f1884f08c8a53fc339d60b1021846882a (patch) | |
tree | 53de69336454706fbff37ddad5f87d8ccd91f32b /cpukit/score/cpu/i386/include/rtems | |
parent | bsp/pc386: Update GDT to work for SMP (diff) | |
download | rtems-8937f12f1884f08c8a53fc339d60b1021846882a.tar.bz2 |
bsp/pc386: Update context switch and restore
Uses similar flow in cpu_asm.S for i386 as for arm.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/i386/include/rtems/score/cpu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/cpu/i386/include/rtems/score/cpu.h b/cpukit/score/cpu/i386/include/rtems/score/cpu.h index 5d14455563..7669c4a0cf 100644 --- a/cpukit/score/cpu/i386/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/include/rtems/score/cpu.h @@ -115,9 +115,10 @@ extern "C" { #define I386_CONTEXT_CONTROL_EDI_OFFSET 20 #define I386_CONTEXT_CONTROL_GS_0_OFFSET 24 #define I386_CONTEXT_CONTROL_GS_1_OFFSET 28 +#define I386_CONTEXT_CONTROL_ISR_DISPATCH_DISABLE 32 #ifdef RTEMS_SMP - #define I386_CONTEXT_CONTROL_IS_EXECUTING_OFFSET 32 + #define I386_CONTEXT_CONTROL_IS_EXECUTING_OFFSET 36 #endif /* structures */ @@ -136,6 +137,7 @@ typedef struct { uint32_t esi; /* extended source index register */ uint32_t edi; /* extended destination index flags register */ segment_descriptors gs; /* gs segment descriptor */ + uint32_t isr_dispatch_disable; #ifdef RTEMS_SMP volatile bool is_executing; #endif |