chopstx_exit change

This commit is contained in:
Niibe Yutaka
2016-06-15 12:41:12 +09:00
parent 440188c373
commit 52626a3368
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2016-06-15 Niibe Yutaka <gniibe@fsij.org>
* chopstx.c (chopstx_exit): Add "naked" attribute.
2016-06-14 Niibe Yutaka <gniibe@fsij.org>
* mcu/usb-stm32f103.c (usb_lld_ctrl_recv): Fix the state and make

View File

@@ -1502,6 +1502,12 @@ chopstx_cleanup_pop (int execute)
}
/*
* We put "naked" attribute to chopstx_exit function. Since it never
* returns, function prologue is not needed.
*/
void chopstx_exit (void *retval) __attribute__ ((naked));
/**
* chopstx_exit - Terminate the execution of running thread
* @retval: Return value (to be caught by a joining thread)