Skip to content

Commit

Permalink
mptable: abide GCC diagnostic false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
rizlik committed Jun 18, 2024
1 parent ddf872e commit bac0a67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/x86/mptable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bac0a67

Please sign in to comment.