diff options
Diffstat (limited to 'firmware/microblaze/lib/hal_io.h')
-rw-r--r-- | firmware/microblaze/lib/hal_io.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/firmware/microblaze/lib/hal_io.h b/firmware/microblaze/lib/hal_io.h index 950f8d591..ff87a3494 100644 --- a/firmware/microblaze/lib/hal_io.h +++ b/firmware/microblaze/lib/hal_io.h @@ -72,10 +72,10 @@ hal_disable_ints(void) { int result, t0; - asm volatile("mfs %0, rmsr \n\ - andni %1, %0, 0x2 \n\ - mts rmsr, %1" - : "=r" (result), "=r" (t0)); + //asm volatile("mfs %0, rmsr \n\ +// andni %1, %0, 0x2 \n\ +// mts rmsr, %1" +// : "=r" (result), "=r" (t0)); return result; } @@ -88,10 +88,10 @@ hal_enable_ints(void) { int result, t0; - asm volatile("mfs %0, rmsr \n\ - ori %1, %0, 0x2 \n\ - mts rmsr, %1" - : "=r" (result), "=r" (t0)); +// asm volatile("mfs %0, rmsr \n\ +// ori %1, %0, 0x2 \n\ +// mts rmsr, %1" +// : "=r" (result), "=r" (t0)); return result; } @@ -103,12 +103,12 @@ static inline void hal_restore_ints(int prev_state) { int t0, t1; - asm volatile("andi %0, %2, 0x2 \n\ - mfs %1, rmsr \n\ - andni %1, %1, 0x2 \n\ - or %1, %1, %0 \n\ - mts rmsr, %1" - : "=r" (t0), "=r"(t1) : "r" (prev_state)); +// asm volatile("andi %0, %2, 0x2 \n\ +// mfs %1, rmsr \n\ +// andni %1, %1, 0x2 \n\ +// or %1, %1, %0 \n\ +// mts rmsr, %1" +// : "=r" (t0), "=r"(t1) : "r" (prev_state)); } #endif /* INCLUDED_HAL_IO_H */ |