From 225aa27233242281452aa30e07475374a9d6bc55 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 21 Dec 2013 15:11:48 +1000 Subject: [PATCH] GOS Raw32 semaphore fix --- include/gos/raw32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gos/raw32.h b/include/gos/raw32.h index 155c0b1c..eb5b5e18 100644 --- a/include/gos/raw32.h +++ b/include/gos/raw32.h @@ -66,7 +66,7 @@ typedef int threadpriority_t; #define TIME_IMMEDIATE 0 #define TIME_INFINITE ((delaytime_t)-1) -#define MAX_SEMAPHORE_COUNT ((semcount_t)(((unsigned long)((semcount_t)(-1))) >> 1)) +#define MAX_SEMAPHORE_COUNT 0x7FFF #define LOW_PRIORITY 0 #define NORMAL_PRIORITY 1 #define HIGH_PRIORITY 2