Correctly remove the ME permissions on Skylake descriptors
This commit is contained in:
parent
2ff65c1ea7
commit
61a70b4112
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue