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