aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiibe Yutaka <gniibe@fsij.org>2016-06-15 12:41:12 +0900
committerNiibe Yutaka <gniibe@fsij.org>2016-06-15 12:41:12 +0900
commit52626a33684f4124c468d946deba82e44afab1bd (patch)
tree07054ad9c14d77faec732a6df7857b7b89a5b92c
parent440188c3738562391ad77fcb4c93d941e0d39456 (diff)
chopstx_exit change
-rw-r--r--ChangeLog4
-rw-r--r--chopstx.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0fe9647..918827b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/chopstx.c b/chopstx.c
index 5c9aed0..d27acb0 100644
--- a/chopstx.c
+++ b/chopstx.c
@@ -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)