Skip to content

Commit aa65415

Browse files
committed
.
Signed-off-by: Zeev Belinsky <zbelinsk@qti.qualcomm.com>
1 parent 4e5af1a commit aa65415

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/data/readylist/readylist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static inline u32_t H2K_ready_any_valid()
4040
/* Check whether a thread at a given priority is ready */
4141
static inline u32_t H2K_ready_prio_valid(u32_t prio)
4242
{
43-
if (prio > WAITING_PRIO) return 0;
43+
if (prio > MAX_PRIO) return 0;
4444
return (H2K_gp->ready_valids[prio >> 6] & (1ULL << (prio & 0x3f))) != 0;
4545
}
4646

kernel/traps/config/test/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int main()
134134

135135
DPRINTF("SET_PRIO_TRAPMASK\n\n");
136136
/* SET_PRIO_TRAPMASK bad prio */
137-
ret = H2K_trap_config(CONFIG_VMBLOCK_INIT, vm, SET_PRIO_TRAPMASK, WAITING_PRIO + 1, 0, NULL);
137+
ret = H2K_trap_config(CONFIG_VMBLOCK_INIT, vm, SET_PRIO_TRAPMASK, MAX_PRIO + 1, 0, NULL);
138138
if (ret!= 0) FAIL("Missed bad prio");
139139

140140
/* SET_PRIO_TRAPMASK */

0 commit comments

Comments
 (0)