x86: Move MADT table to a writer function