Fixed redundant typecast in lapic write/read macros
This commit is contained in:
parent
42c13951a7
commit
8a2a4f97fc
1 changed files with 3 additions and 3 deletions
|
@ -95,9 +95,9 @@ _PROTOTYPE(void lapic_stop_timer, (void));
|
||||||
|
|
||||||
#define cpu_feature_apic_on_chip() _cpufeature(_CPUF_I386_APIC_ON_CHIP)
|
#define cpu_feature_apic_on_chip() _cpufeature(_CPUF_I386_APIC_ON_CHIP)
|
||||||
|
|
||||||
#define lapic_read(what) (*((u32_t *)((char*)(what))))
|
#define lapic_read(what) (*((u32_t *)((what))))
|
||||||
#define lapic_write(what, data) do { \
|
#define lapic_write(what, data) do { \
|
||||||
(*((u32_t *)((char*)(what)))) = data; \
|
(*((u32_t *)((what)))) = data; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
Loading…
Reference in a new issue