mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
3bcc686023
Drop the unneded register preserving of RBX, RSI and RDI. It's no longer
needed since commit 5c943b8f38 ("Changes to windows helper and driver
to support return values") refactored the code to just work with the
passed SMI_CTX buffer as scratch space.
Also clobber only the lower 16 bits of RAX with 'smi_code_data', as
documented and assumed by callers.
Last, but not least, drop the misleading comment about clobbering DX as
that doesn't happen any more. Also update all other comments to mirror
the current implementation.
This brings the Windows implementation in line with the Linux one.
Signed-off-by: Mathias Krause <minipli@grsecurity.net>