summaryrefslogtreecommitdiff
path: root/firmware/common/dircache.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/dircache.c')
-rw-r--r--firmware/common/dircache.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index c39dd7f7b5..b92d8fe974 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -62,7 +62,7 @@ static unsigned long reserve_used = 0;
62static unsigned int cache_build_ticks = 0; 62static unsigned int cache_build_ticks = 0;
63static char dircache_cur_path[MAX_PATH*2]; 63static char dircache_cur_path[MAX_PATH*2];
64 64
65static struct event_queue dircache_queue; 65static struct event_queue dircache_queue NOCACHEBSS_ATTR;
66static long dircache_stack[(DEFAULT_STACK_SIZE + 0x900)/sizeof(long)]; 66static long dircache_stack[(DEFAULT_STACK_SIZE + 0x900)/sizeof(long)];
67static const char dircache_thread_name[] = "dircache"; 67static const char dircache_thread_name[] = "dircache";
68 68
@@ -147,7 +147,7 @@ static struct travel_data dir_recursion[MAX_SCAN_DEPTH];
147 */ 147 */
148static bool check_event_queue(void) 148static bool check_event_queue(void)
149{ 149{
150 struct event ev; 150 struct queue_event ev;
151 151
152 queue_wait_w_tmo(&dircache_queue, &ev, 0); 152 queue_wait_w_tmo(&dircache_queue, &ev, 0);
153 switch (ev.id) 153 switch (ev.id)
@@ -598,7 +598,7 @@ static int dircache_do_rebuild(void)
598 */ 598 */
599static void dircache_thread(void) 599static void dircache_thread(void)
600{ 600{
601 struct event ev; 601 struct queue_event ev;
602 602
603 while (1) 603 while (1)
604 { 604 {
@@ -701,8 +701,9 @@ void dircache_init(void)
701 701
702 queue_init(&dircache_queue, true); 702 queue_init(&dircache_queue, true);
703 create_thread(dircache_thread, dircache_stack, 703 create_thread(dircache_thread, dircache_stack,
704 sizeof(dircache_stack), dircache_thread_name IF_PRIO(, PRIORITY_BACKGROUND) 704 sizeof(dircache_stack), 0, dircache_thread_name
705 IF_COP(, CPU, false)); 705 IF_PRIO(, PRIORITY_BACKGROUND)
706 IF_COP(, CPU));
706} 707}
707 708
708/** 709/**