From: Matthias Kruk Date: Thu, 2 Jan 2020 07:28:21 +0000 (+0900) Subject: Add parantheses to SEGM_CS() and SEGM_DS() macros to avoid ambiguousness X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=e6aa8ce75fe0f521b2f4add6f2223d5d7c898651;p=corax Add parantheses to SEGM_CS() and SEGM_DS() macros to avoid ambiguousness --- diff --git a/kernel/arch/defs.h b/kernel/arch/defs.h index 161568e..b8825b9 100644 --- a/kernel/arch/defs.h +++ b/kernel/arch/defs.h @@ -40,8 +40,8 @@ #define RPL_SYSTEM 2 #define RPL_USER 3 -#define SEGM_CS(n) (0x10 * (n) + 0x08 | (n)) -#define SEGM_DS(n) (0x10 * (n) + 0x10 | (n)) +#define SEGM_CS(n) ((0x10 * (n) + 0x08) | (n)) +#define SEGM_DS(n) ((0x10 * (n) + 0x10) | (n)) #define KERNEL_CODE SEGM_CS(RPL_KERNEL) #define KERNEL_DATA SEGM_DS(RPL_KERNEL)