Fixed compatibiity with non-GCC compilers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13296 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
72f8edfd81
commit
4e0f2c2ece
|
@ -124,14 +124,16 @@ void SVC_Handler(void) {
|
|||
/*lint -restore*/
|
||||
uint32_t psp = __get_PSP();
|
||||
|
||||
chDbgAssert(((uint32_t)__builtin_return_address(0) & 4U) != 0U,
|
||||
"not process");
|
||||
|
||||
#if PORT_USE_SYSCALL == TRUE
|
||||
uint32_t control;
|
||||
/* Caller context.*/
|
||||
struct port_extctx *ectxp = (struct port_extctx *)psp;
|
||||
|
||||
#if defined(__GNUC__)
|
||||
chDbgAssert(((uint32_t)__builtin_return_address(0) & 4U) != 0U,
|
||||
"not process");
|
||||
#endif
|
||||
|
||||
/* Checking if the SVC instruction has been used from privileged or
|
||||
non-privileged mode.*/
|
||||
control = __get_CONTROL();
|
||||
|
|
Loading…
Reference in New Issue