Fix flash descriptor permissions

ME read access on the flash descriptor is (at least on some systems)
needed to complete boot process.
This commit is contained in:
Michael Niewoehner 2018-01-16 23:01:30 +01:00 committed by Nicola Corna
parent 604e1bf812
commit 2d8b6192da

View file

@ -797,7 +797,7 @@ if __name__ == "__main__":
if args.descriptor:
print("Removing ME/TXE R/W access to the other flash regions...")
if me11:
flmstr2 = 0x00400400
flmstr2 = 0x00400500
else:
fdf.seek(fmba + 0x4)
flmstr2 = (unpack("<I", fdf.read(4))[0] | 0x04040000) & 0x0404ffff