aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_io.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-29 11:37:18 -0500
committerJosh Blum <josh@joshknows.com>2010-12-12 18:23:46 -0800
commitc08da91e832637e3197758f81128682f6fccf1bd (patch)
treea64580fa299b435db389741c8a31f918300c6f81 /firmware/microblaze/lib/hal_io.h
parent096405b9291d1d3b3ac37d9768232cca43a37db6 (diff)
downloaduhd-c08da91e832637e3197758f81128682f6fccf1bd.tar.gz
uhd-c08da91e832637e3197758f81128682f6fccf1bd.tar.bz2
uhd-c08da91e832637e3197758f81128682f6fccf1bd.zip
usrp-n: created cmake/zpu build for firmware
Diffstat (limited to 'firmware/microblaze/lib/hal_io.h')
-rw-r--r--firmware/microblaze/lib/hal_io.h28
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 */