From: RichardBarry Date: Sat, 24 May 2008 18:52:12 +0000 (+0000) Subject: Add usage of portREMOVE_STATIC_QUALIFIER. X-Git-Tag: V5.0.2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4e79cd4a0f0d7ec7a4c3a378318adc04315710a;p=freertos Add usage of portREMOVE_STATIC_QUALIFIER. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@387 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/tasks.c b/Source/tasks.c index 06a6a9864..3e3ac8ac9 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -60,7 +60,6 @@ */ #define tskIDLE_STACK_SIZE configMINIMAL_STACK_SIZE - /* * Task control block. A task control block (TCB) is allocated to each task, * and stores the context of the task. @@ -92,6 +91,14 @@ typedef struct tskTaskControlBlock } tskTCB; +/* + * Some kernel aware debuggers require data to be viewed to be global, rather + * than file scope. + */ +#ifdef portREMOVE_STATIC_QUALIFIER + #define static +#endif + /*lint -e956 */ tskTCB * volatile pxCurrentTCB = NULL;