summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-10-09 14:24:34 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-10-09 15:00:48 -0400
commit53d72a8be1932a91e138920885a9e36c752460e0 (patch)
treeaa15433ca45afcb9a57542307ceb78f701c507c8
parent71abdf5d82f476eba1f57eeac02427d295ce9be3 (diff)
downloadrockbox-53d72a8be1932a91e138920885a9e36c752460e0.tar.gz
rockbox-53d72a8be1932a91e138920885a9e36c752460e0.zip
fix builds broken by the selective stack bump for opus seeking.
Change-Id: I9eb3b4d2bc88293b09679c27fbceaaa7788ba553
-rw-r--r--apps/codec_thread.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index 7189332673..4eb85c8d71 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -90,8 +90,14 @@ extern struct codec_api ci; /* from codecs.c */
90static unsigned int codec_thread_id; /* For modifying thread priority later */ 90static unsigned int codec_thread_id; /* For modifying thread priority later */
91static struct event_queue codec_queue SHAREDBSS_ATTR; 91static struct event_queue codec_queue SHAREDBSS_ATTR;
92static struct queue_sender_list codec_queue_sender_list SHAREDBSS_ATTR; 92static struct queue_sender_list codec_queue_sender_list SHAREDBSS_ATTR;
93
93/* Workaround stack overflow in opus codec on highmem devices (see FS#13060). */ 94/* Workaround stack overflow in opus codec on highmem devices (see FS#13060). */
94#define WORKAROUND_FS13060 (MEMORYSIZE >= 8 ? 0x800 : 0) 95#if !defined(CPU_COLDFIRE) && (MEMORYSIZE >= 8) && defined(IRAMSIZE) && IRAMSIZE > (32 * 1024)
96#define WORKAROUND_FS13060 0x800
97#else
98#define WORKAROUND_FS13060 0
99#endif
100
95static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000 + WORKAROUND_FS13060)/sizeof(long)] IBSS_ATTR; 101static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000 + WORKAROUND_FS13060)/sizeof(long)] IBSS_ATTR;
96static const char codec_thread_name[] = "codec"; 102static const char codec_thread_name[] = "codec";
97 103