]> Zhao Yanbai Git Server - minix.git/commitdiff
Fixed redundant typecast in lapic write/read macros
authorTomas Hruby <tom@minix3.org>
Wed, 13 Jan 2010 18:23:58 +0000 (18:23 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 13 Jan 2010 18:23:58 +0000 (18:23 +0000)
kernel/arch/i386/apic.h

index fa7dde5a14dc6672841df8673fcb683bb8e552e6..88a5f942299538e0d6c331d72c69d7afe9b220b5 100644 (file)
@@ -95,9 +95,9 @@ _PROTOTYPE(void lapic_stop_timer, (void));
 
 #define cpu_feature_apic_on_chip() _cpufeature(_CPUF_I386_APIC_ON_CHIP)
 
-#define lapic_read(what)       (*((u32_t *)((char*)(what))))
-#define lapic_write(what, data)        do {                                    \
-       (*((u32_t *)((char*)(what)))) = data;                   \
+#define lapic_read(what)       (*((u32_t *)((what))))
+#define lapic_write(what, data)        do {                    \
+       (*((u32_t *)((what)))) = data;                  \
 } while(0)
 
 #endif /* __ASSEMBLY__ */