[riot-notifications] [RIOT-OS/RIOT] core: add irq_is_enabled() function to irq interface (#11117)

Francisco notifications at github.com
Mon Aug 23 14:20:01 CEST 2021


@fjmolinas commented on this pull request.



> +static inline __attribute__((always_inline)) int irq_is_enabled(void)
+{
+   unsigned state;
+   __asm__ volatile (
+       "csrr %[dest], mstatus"
+       :[dest]    "=r" (state)
+       : /* no inputs */
+       : "memory"
+       );
+   return (state & MSTATUS_MIE);
+}
+

Seems like there is some alignment mishaps here

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11117#pullrequestreview-736051680
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210823/6e66ff9d/attachment.htm>


More information about the notifications mailing list