mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-23 11:09:28 -05:00
Renamed proof headers. Removed "verifast" prefix where unnecessary.
This commit is contained in:
parent
6dc6c5dbbe
commit
04ab514f31
8 changed files with 532 additions and 20 deletions
|
|
@ -1,35 +0,0 @@
|
|||
#ifndef VERIFAST_ASM_H
|
||||
#define VERIFAST_ASM_H
|
||||
|
||||
/* VeriFast does not support inline assembler.
|
||||
* The following definitions replace macros that would normally evaluate to
|
||||
* inline assember by failing assertions.
|
||||
*/
|
||||
|
||||
/* VeriFast treats `assert` as keyword and does not support calling it
|
||||
* in many contexts where function calls are permitted. */
|
||||
bool assert_fct(bool b, const char*)
|
||||
{
|
||||
assert(b);
|
||||
return b;
|
||||
}
|
||||
|
||||
// Port macros were originally defined in `portmacro.h`.
|
||||
|
||||
#undef portCHECK_IF_IN_ISR
|
||||
#define portCHECK_IF_IN_ISR() assert_fct(false, "portCHECK_IF_IN_ISR")
|
||||
|
||||
/* Additional reason for rewrite:
|
||||
* VeriFast does not support embedding block statements that consist of
|
||||
* multiple elemts in expression contexts, e.g., `({e1; e2})`.
|
||||
*/
|
||||
#undef portSET_INTERRUPT_MASK_FROM_ISR
|
||||
#define portSET_INTERRUPT_MASK_FROM_ISR() assert_fct(false, "portSET_INTERRUPT_MASK_FROM_ISR")
|
||||
|
||||
#undef portRESTORE_INTERRUPTS
|
||||
#define portRESTORE_INTERRUPTS(ulState) assert_fct(false, "portRESTORE_INTERRUPTS")
|
||||
|
||||
//#undef portDISABLE_INTERRUPTS
|
||||
//#define portDISABLE_INTERRUPTS() assert_fct(false, "portDISABLE_INTERRUPTS")
|
||||
|
||||
#endif /* VERIFAST_ASM_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue