[rtems commit] bsps/powerpc: Fix GET_INTERRUPT_MASK macro

Sebastian Huber sebh at rtems.org
Wed Mar 12 15:36:32 UTC 2014


Module:    rtems
Branch:    master
Commit:    dedc1393f3f4a1a0aa9247a892df53554c6c1891
Changeset: http://git.rtems.org/rtems/commit/?id=dedc1393f3f4a1a0aa9247a892df53554c6c1891

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Mar 12 16:37:10 2014 +0100

bsps/powerpc: Fix GET_INTERRUPT_MASK macro

Use _PPC_INTERRUPT_DISABLE_MASK introduced with
801b5d80325dbd3e92218271d54e75f389da7136.

---

 .../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 3994255..50c93bf 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 at h
+	ori	\mask, \mask, _PPC_INTERRUPT_DISABLE_MASK at l
 .endm
 
 /*




More information about the vc mailing list