diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-21 14:18:37 -0500 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2017-01-21 14:25:52 -0500 |
| commit | 3e738661108fb2a8e3474c6336c2a5c2668f82b6 (patch) | |
| tree | c3c7bc51c4329ab6652fd2550a241a56bbafda1f /firmware/export | |
| parent | da464572318a34f4791ccb419acbf0a470b810e6 (diff) | |
| download | rockbox-3e738661108fb2a8e3474c6336c2a5c2668f82b6.zip rockbox-3e738661108fb2a8e3474c6336c2a5c2668f82b6.tar.gz rockbox-3e738661108fb2a8e3474c6336c2a5c2668f82b6.tar.bz2 rockbox-3e738661108fb2a8e3474c6336c2a5c2668f82b6.tar.xz | |
Add CPU mode asserts to kernel on blocking functions.
This scourge finds it's way back in far too often.
Right now, only defined for ARM.
Have fun!
Change-Id: Ib21be09ebf71dec10dc652a7a664779251f49644
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/system.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index e83ee53..d33a35f 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -204,6 +204,16 @@ enum { #include "bitswap.h" #include "rbendian.h" +#ifndef ASSERT_CPU_MODE +/* Very useful to have defined properly for your architecture */ +#define ASSERT_CPU_MODE(mode, rstatus...) \ + ({ (mode); rstatus; }) +#endif + +#ifndef CPU_MODE_THREAD_CONTEXT +#define CPU_MODE_THREAD_CONTEXT 0 +#endif + #ifndef BIT_N #define BIT_N(n) (1U << (n)) #endif |