summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-05-23 19:48:55 +0000
committerJens Arnold <amiconn@rockbox.org>2005-05-23 19:48:55 +0000
commit8779802aaf44ddbf0e44769ec9fd6a61635a3ca1 (patch)
tree241e06dc64f0824d4ed588eb90a24a0f1b1f20d4 /firmware
parentff3add9f20d2de978dc2fa97329f97be8dad48ee (diff)
downloadrockbox-8779802aaf44ddbf0e44769ec9fd6a61635a3ca1.tar.gz
rockbox-8779802aaf44ddbf0e44769ec9fd6a61635a3ca1.zip
Make sure the context functions are always inlined, independent of optimisation level.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6512 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index d79c53834e..b7769535f7 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -64,6 +64,8 @@ extern int stackbegin[];
extern int stackend[];
void switch_thread(void) __attribute__ ((section(".icode")));
+static inline void store_context(void* addr) __attribute__ ((always_inline));
+static inline void load_context(const void* addr) __attribute__ ((always_inline));
#if CONFIG_CPU == MCF5249
/*---------------------------------------------------------------------------