LegacyBiosThunk: import changes from edk2 (r15648)