mirror of https://github.com/l4ka/pistachio.git
- 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:
parent
fb2b421bab
commit
39e519d966
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue