Skip to content

Commit

Permalink
Update Linux max phys mem write size from 0xFFFF to 0xFFFFFFFF
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Mitchell <[email protected]>
  • Loading branch information
npmitche committed Jul 22, 2024
1 parent 9f84aba commit 5329658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chipsec/helper/linux/linuxhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __mem_block(self, sz: int, newval: Optional[bytes] = None) -> bytes:
else:
res = self.dev_fh.write(newval)
self.dev_fh.flush()
return res.to_bytes(2, 'little')
return res.to_bytes(4, 'little')
return b''

def write_phys_mem(self, phys_address: int, length: int, newval: bytes) -> int:
Expand Down

0 comments on commit 5329658

Please sign in to comment.