C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
sysenter.h
1
4#pragma once
5
6#if (!defined TESTING)
7
8
14#define __SYSCALL __attribute__((naked)) __attribute__((noinline))
15
16#define ___SVC(no)\
17 asm volatile(\
18 "SVC %[immediate]\n\t"\
19 "BX LR\n\t" : : [immediate] "I" (no) : "r0")
20
25#define __SVC(no, ...) ___SVC(no)
26
27#else
28
29#define __SYSCALL
30
31void __SVC(uint8_t no);
32
33#endif
34
#define __SVC(no,...)
Perform syscall.
Definition sysenter.h:25