From: Tomas Hruby Date: Wed, 13 Jan 2010 18:23:58 +0000 (+0000) Subject: Fixed redundant typecast in lapic write/read macros X-Git-Tag: v3.1.6~86 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=8a2a4f97fc8b353f4044a3b9f577c319d13e20c4;p=minix.git Fixed redundant typecast in lapic write/read macros --- diff --git a/kernel/arch/i386/apic.h b/kernel/arch/i386/apic.h index fa7dde5a1..88a5f9422 100644 --- a/kernel/arch/i386/apic.h +++ b/kernel/arch/i386/apic.h @@ -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__ */