Update patch.c
Add `naked` attribute to the function wakeupProcess1()
This commit is contained in:
parent
a48f01f1ce
commit
b3adac6168
1 changed files with 5 additions and 0 deletions
|
|
@ -5664,6 +5664,11 @@ void config_RTC1(uint32 time)
|
|||
@return None.
|
||||
*/
|
||||
uint32 sleep_total;
|
||||
#ifdef __GNUC__
|
||||
// Indicate that the specified function does not need prologue/epilogue sequences
|
||||
// generated by the compiler. And function doesn't return.
|
||||
void wakeupProcess1(void) __attribute__ ((naked));
|
||||
#endif
|
||||
void wakeupProcess1(void)
|
||||
{
|
||||
uint32 current_RTC_tick;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue