diff --git a/sys/mips/include/runq.h b/sys/mips/include/runq.h index 2e573010f933..c19cbb98cd1e 100644 --- a/sys/mips/include/runq.h +++ b/sys/mips/include/runq.h @@ -30,11 +30,16 @@ #ifndef _MACHINE_RUNQ_H_ #define _MACHINE_RUNQ_H_ +#if defined(__mips_n64) +#define RQB_LEN (1) /* Number of priority status words. */ +#define RQB_L2BPW (6) /* Log2(sizeof(rqb_word_t) * NBBY)). */ +#else #define RQB_LEN (2) /* Number of priority status words. */ #define RQB_L2BPW (5) /* Log2(sizeof(rqb_word_t) * NBBY)). */ +#endif #define RQB_BPW (1<> RQB_L2BPW) #define RQB_FFS(word) (ffs(word) - 1) @@ -42,6 +47,10 @@ /* * Type of run queue status word. */ -typedef u_int32_t rqb_word_t; +#if defined(__mips_n64) +typedef u_int64_t rqb_word_t; +#else +typedef u_int32_t rqb_word_t; +#endif #endif