diff --git a/src/x86/mptable.c b/src/x86/mptable.c index 9bf5e3e3f..f889fd8dd 100644 --- a/src/x86/mptable.c +++ b/src/x86/mptable.c @@ -499,7 +499,10 @@ void mptable_setup(void) x86_log_memory_load((uint32_t)MPTABLE_LOAD_BASE, (uint32_t)MPTABLE_LOAD_BASE + sizeof(struct mptable), "MPTABLE"); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" memcpy(_mp, (void*)&_mptable, sizeof(struct mptable)); +#pragma GCC diagnostic pop apic_id = mmio_read32(LOCAL_APIC_ID); apic_ver = mmio_read32(LOCAL_APIC_VER);