]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix brackets in kernel/arch/i386/include/archconst.h
authorErik van der Kouwe <erik@minix3.org>
Wed, 6 Jan 2010 08:46:33 +0000 (08:46 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 6 Jan 2010 08:46:33 +0000 (08:46 +0000)
kernel/arch/i386/include/archconst.h

index 9cbaf5e51a611676cc76407f9cff5c1ff16cbd0a..12e8e51363c5c621aa50e916abf2b575928774f7 100644 (file)
 #define IOPL_MASK 0x003000
 
 #define vir2phys(vir)   ((phys_bytes)((kinfo.data_base + (vir_bytes) (vir))))
-#define phys2vir(ph)   (((vir_bytes)(((vir_bytes) (ph) - kinfo.data_base)))
+#define phys2vir(ph)   ((vir_bytes)((vir_bytes) (ph) - kinfo.data_base))
 
 #define INTEL_CPUID_GEN_EBX    0x756e6547 /* ASCII value of "Genu" */
 #define INTEL_CPUID_GEN_EDX    0x49656e69 /* ASCII value of "ineI" */