#elif defined (__rocket__)
return (csrr(mstatus) & CSR_MSTATUS_MIE) != 0;
#elif defined (__microwatt__)
- return 0; // FIXME
-#elif defined (__blackparrot__)
- return (csrr(mstatus) & CSR_MSTATUS_MIE) != 0;//TODO
+ return 0; /* No interrupt support on Microwatt */
+#elif defined (__blackparrot__)
+ return (csrr(mstatus) & CSR_MSTATUS_MIE) != 0; /* FIXME */
#elif defined (__serv__)
- return 0; /* FIXME */
+ return 0; /* No interrupt support on SERV */
#else
#error Unsupported architecture
#endif
#elif defined (__rocket__)
if(ie) csrs(mstatus,CSR_MSTATUS_MIE); else csrc(mstatus,CSR_MSTATUS_MIE);
#elif defined (__microwatt__)
- // FIXME
+ /* No interrupt support on Microwatt */
#elif defined (__blackparrot__)
- if(ie) csrs(mstatus,CSR_MSTATUS_MIE); else csrc(mstatus,CSR_MSTATUS_MIE);//TODO:BP
+ if(ie) csrs(mstatus,CSR_MSTATUS_MIE); else csrc(mstatus,CSR_MSTATUS_MIE); /* FIXME */
#elif defined (__serv__)
- /* FIXME */
+ /* No interrupt support on SERV */
#else
#error Unsupported architecture
#endif
#elif defined (__rocket__)
return *((unsigned int *)PLIC_ENABLED) >> 1;
#elif defined (__microwatt__)
- return 0; // FIXME
+ return 0; /* No interrupt support on Microwatt */
#elif defined (__blackparrot__)
- //TODO:BP
-#elif defined (__serv__)
return 0; /* FIXME */
+#elif defined (__serv__)
+ return 0; /* No interrupt support on SERV */
#else
#error Unsupported architecture
#endif
#elif defined (__rocket__)
*((unsigned int *)PLIC_ENABLED) = mask << 1;
#elif defined (__microwatt__)
- // FIXME
+ /* No interrupt support on Microwatt */
#elif defined (__blackparrot__)
- //TODO:BP
-#elif defined (__serv__)
/* FIXME */
+#elif defined (__serv__)
+ /* No interrupt support on SERV */
#else
#error Unsupported architecture
#endif
#elif defined (__rocket__)
return *((unsigned int *)PLIC_PENDING) >> 1;
#elif defined (__microwatt__)
- return 0; // FIXME
+ return 0; /* No interrupt support on Microwatt */
#elif defined (__blackparrot__)
- return csr_readl(PLIC_PENDING) >> 1;//TODO:BP
+ return csr_readl(PLIC_PENDING) >> 1; /* FIXME */
#elif defined (__serv__)
- return 0;/* FIXME */
+ return 0; /* No interrupt support on SERV */
#else
#error Unsupported architecture
#endif