mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 14:45:09 -05:00
Replaced asm macro by failing assertion.
This commit is contained in:
parent
75fa197ac9
commit
eeae596776
3 changed files with 255 additions and 225 deletions
4
tasks.c
4
tasks.c
|
|
@ -44,6 +44,10 @@
|
|||
#include "timers.h"
|
||||
#include "stack_macros.h"
|
||||
|
||||
#ifdef VERIFAST
|
||||
#include "verifast_asm.h"
|
||||
#endif
|
||||
|
||||
/* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified
|
||||
* because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined
|
||||
* for the header files above, but not in this file, in order to generate the
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
12
verification/verifast/proof_setup/verifast_asm.h
Normal file
12
verification/verifast/proof_setup/verifast_asm.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef VERIFAST_ASM_H
|
||||
#define VERIFAST_ASM_H
|
||||
|
||||
bool assert_fct(bool b)
|
||||
{
|
||||
assert(b);
|
||||
return b;
|
||||
}
|
||||
#undef portCHECK_IF_IN_ISR
|
||||
#define portCHECK_IF_IN_ISR() assert_fct(false)
|
||||
|
||||
#endif /* VERIFAST_ASM_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue