mirror of
https://github.com/seL4/seL4.git
synced 2026-04-16 12:18:34 +00:00
libsel4: arm: Reintroduce -O0 warning
This commit is contained in:
@@ -17,6 +17,15 @@
|
||||
|
||||
#define __SWINUM(x) ((x) & 0x00ffffff)
|
||||
|
||||
#ifndef __OPTIMIZE__
|
||||
/* With no optimisations (-O0) GCC's register allocator clobbers the
|
||||
* syscall arguments before you reach the 'swi' and you invoke the kernel
|
||||
* incorrectly.
|
||||
* See SELFOUR-187
|
||||
*/
|
||||
#warning you are compiling with -O0; syscalls will most likely not work
|
||||
#endif
|
||||
|
||||
static inline void
|
||||
seL4_Send(seL4_CPtr dest, seL4_MessageInfo_t msgInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user