kernel: init: Add nop instruction in main
The main function is just a weak function that should be override by the applications if they need. Just adding a nop instructions to explicitly says that this function does nothing. MISRA-C rule 2.2 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
a0a63ac344
commit
b82a339813
8 changed files with 61 additions and 0 deletions
|
@ -201,6 +201,14 @@ enum nios2_exception_cause {
|
|||
extern u32_t _timer_cycle_get_32(void);
|
||||
#define _arch_k_cycle_get_32() _timer_cycle_get_32()
|
||||
|
||||
/**
|
||||
* @brief Explicitly nop operation.
|
||||
*/
|
||||
static ALWAYS_INLINE void arch_nop(void)
|
||||
{
|
||||
__asm__ volatile("nop");
|
||||
}
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue