[PATCH 2/2] x86, ia64: Merge common vga fixup code