File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515/* and message-passing paradigms. */
1616
1717/* Set to 1 to use message-passing version, 0 for shared-memory version */
18- #define SYNCHBARR_MESGPASS_APP 0
18+ #define SYNCHBARR_MESGPASS_APP 1
1919
2020#include <kapi.h>
2121/* Configure the application logger facility here */
Original file line number Diff line number Diff line change @@ -219,8 +219,9 @@ VOID kSchUnlock(VOID);
219219#define RK_N_SYSTASKS 2U /* idle + post-processing */
220220#define RK_NTHREADS (RK_CONF_N_USRTASKS_MAX + RK_N_SYSTASKS)
221221#define RK_CONF_NTASKS RK_NTHREADS
222- #define RK_NPRIO (RK_CONF_MIN_PRIO + 1U)
223-
222+ #ifndef RK_RDYQSIZ
223+ #define RK_RDYQSIZ (RK_CONF_MIN_PRIO + 2U)
224+ #endif
224225
225226/*** SERVICE TOKENS ***/
226227/* Blocking option */
Original file line number Diff line number Diff line change 2222#include <klist.h>
2323#include <kstring.h>
2424/* Globals */
25+
2526extern RK_TCB * RK_gRunPtr ; /* Pointer to the running TCB */
2627extern RK_TCB RK_gTcbs [RK_NTHREADS ]; /* Pool of RK_gTcbs */
2728extern volatile RK_FAULT RK_gFaultID ; /* Fault ID */
2829extern UINT RK_gIdleStack [RK_CONF_IDLE_STACKSIZE ]; /* Stack for idle task */
2930extern UINT RK_gPostProcStack [RK_CONF_POSTPROC_STACKSIZE ];
30- extern RK_TCBQ RK_gReadyQueue [RK_CONF_MIN_PRIO + RK_N_SYSTASKS ]; /* Table of ready queues */
31+ extern RK_TCBQ RK_gReadyQueue [RK_RDYQSIZ ]; /* Table of ready queues */
3132extern volatile ULONG RK_gReadyBitmask ;
3233extern volatile ULONG RK_gReadyPos ;
3334extern volatile UINT RK_gPendingCtxtSwtch ;
Original file line number Diff line number Diff line change 2323#include <ktimer.h>
2424
2525/* scheduler globals */
26- RK_TCBQ RK_gReadyQueue [RK_CONF_MIN_PRIO + RK_N_SYSTASKS ];
26+ RK_TCBQ RK_gReadyQueue [RK_RDYQSIZ ]; /* Table of ready queues */
2727RK_TCB * RK_gRunPtr ;
2828RK_TCB RK_gTcbs [RK_NTHREADS ];
2929RK_TASK_HANDLE RK_gPostProcTaskHandle ;
You can’t perform that action at this time.
0 commit comments