efi: Move common EFI stub code from x86 arch code to common location