diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-02-25 21:11:00 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-02-26 07:40:17 +0100 |
commit | a286d28695d312971400c6b25f43d0794f5e9be8 (patch) | |
tree | 169e5471bced96e5504fe597316bba4b4a776af6 /bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h | |
parent | riscv: Use zicsr architecture extension (diff) | |
download | rtems-a286d28695d312971400c6b25f43d0794f5e9be8.tar.bz2 |
powerpc: Use .machine any for some inline asm
Diffstat (limited to 'bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h')
-rw-r--r-- | bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h b/bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h index 61d70eef07..508e3f274a 100644 --- a/bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h +++ b/bsps/powerpc/mpc55xxevb/include/mpc55xx/mpc55xx.h @@ -129,7 +129,12 @@ static inline uint32_t mpc55xx_count_leading_zeros( uint32_t value) static inline void mpc55xx_wait_for_interrupt(void) { #ifdef MPC55XX_HAS_WAIT_INSTRUCTION - __asm__ volatile ("wait"); + __asm__ volatile ( + ".machine \"push\"\n" + ".machine \"any\"\n" + "wait\n" + ".machine \"pop\"" + ); #else __asm__ volatile (""); #endif |