Update patch.c

Add `naked` attribute to the function wakeupProcess1()
This commit is contained in:
froloffw7 2024-01-09 12:34:48 +01:00 committed by GitHub
parent a48f01f1ce
commit b3adac6168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;