- First cast the function pointer into a word_t, then cast it into a u32_t.

GCC will complain otherwise
This commit is contained in:
Jan Stoess 2007-07-27 11:31:52 +02:00
parent fb2b421bab
commit 39e519d966
1 changed files with 2 additions and 1 deletions

View File

@ -355,7 +355,8 @@ INLINE void local_apic_t<base>::send_startup_ipi(u8_t apic_id, void(*startup_fun
reg.raw = read_reg(APIC_INTR_CMD1);
// the startup-address of the receiving processor is
// 0x000VV000, where VV is sent with the SIPI.
reg.x.vector = ((u32_t)startup_func) >> 12 & 0xff;
word_t startup_vector = (word_t) startup_func;
reg.x.vector = ((u32_t)startup_vector) >> 12 & 0xff; ;
reg.x.delivery_mode = startup;
reg.x.destination_mode = 0;
reg.x.destination = 0;