Correctly remove the ME permissions on Skylake descriptors

This commit is contained in:
Nicola Corna 2018-01-11 12:47:27 +01:00
parent 2ff65c1ea7
commit 61a70b4112

View file

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