diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-12 16:37:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-12 16:40:49 +0100 |
commit | dedc1393f3f4a1a0aa9247a892df53554c6c1891 (patch) | |
tree | 67afc4fa0e0f0287cf5680222bfd786904230c88 /c/src/lib/libcpu | |
parent | psxtests/psxkey07: Do not allocate task IDs (diff) | |
download | rtems-dedc1393f3f4a1a0aa9247a892df53554c6c1891.tar.bz2 |
bsps/powerpc: Fix GET_INTERRUPT_MASK macro
Use _PPC_INTERRUPT_DISABLE_MASK introduced with
801b5d80325dbd3e92218271d54e75f389da7136.
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h b/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h index 3994255080..50c93bf0d8 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h +++ b/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h @@ -873,7 +873,8 @@ void ppc_code_copy(void *dest, const void *src, size_t n); * Obtain interrupt mask */ .macro GET_INTERRUPT_MASK mask - mfspr \mask, sprg0 + lis \mask, _PPC_INTERRUPT_DISABLE_MASK@h + ori \mask, \mask, _PPC_INTERRUPT_DISABLE_MASK@l .endm /* |