Skip to content

Commit 2438cdb

Browse files
Minors
1 parent 75892bd commit 2438cdb

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

app/src/application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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 */

core/inc/kcommondefs.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 */

core/inc/ksch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
#include <klist.h>
2323
#include <kstring.h>
2424
/* Globals */
25+
2526
extern RK_TCB* RK_gRunPtr; /* Pointer to the running TCB */
2627
extern RK_TCB RK_gTcbs[RK_NTHREADS]; /* Pool of RK_gTcbs */
2728
extern volatile RK_FAULT RK_gFaultID; /* Fault ID */
2829
extern UINT RK_gIdleStack[RK_CONF_IDLE_STACKSIZE]; /* Stack for idle task */
2930
extern 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 */
3132
extern volatile ULONG RK_gReadyBitmask;
3233
extern volatile ULONG RK_gReadyPos;
3334
extern volatile UINT RK_gPendingCtxtSwtch;

core/src/ksch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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 */
2727
RK_TCB *RK_gRunPtr;
2828
RK_TCB RK_gTcbs[RK_NTHREADS];
2929
RK_TASK_HANDLE RK_gPostProcTaskHandle;

0 commit comments

Comments
 (0)