From 7ce60b378dcf732e1467dcb7664a94824ac608c7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Nov 2016 15:23:40 +0100 Subject: powerpc: Use Per_CPU_Control::isr_dispatch_disable Update #2751. --- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/powerpc/rtems/score') diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index dc42d99ee7..0c8abae0dc 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -25,7 +25,7 @@ * * Copyright (c) 2001 Surrey Satellite Technology Limited (SSTL). * - * Copyright (c) 2010-2013 embedded brains GmbH. + * Copyright (c) 2010, 2016 embedded brains GmbH. * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at @@ -236,8 +236,8 @@ typedef struct { PPC_GPR_TYPE gpr30; PPC_GPR_TYPE gpr31; uint32_t gpr2; + uint32_t isr_dispatch_disable; #if defined(PPC_MULTILIB_ALTIVEC) - uint32_t reserved_for_alignment; uint8_t v20[16]; uint8_t v21[16]; uint8_t v22[16]; @@ -361,6 +361,8 @@ static inline ppc_context *ppc_get_context( const Context_Control *context ) #define PPC_CONTEXT_OFFSET_GPR30 PPC_CONTEXT_GPR_OFFSET( 30 ) #define PPC_CONTEXT_OFFSET_GPR31 PPC_CONTEXT_GPR_OFFSET( 31 ) #define PPC_CONTEXT_OFFSET_GPR2 PPC_CONTEXT_GPR_OFFSET( 32 ) +#define PPC_CONTEXT_OFFSET_ISR_DISPATCH_DISABLE \ + ( PPC_CONTEXT_GPR_OFFSET( 32 ) + 4 ) #ifdef PPC_MULTILIB_ALTIVEC #define PPC_CONTEXT_OFFSET_V( v ) \ -- cgit v1.2.3