Commit Graph

7 Commits

Author SHA1 Message Date
Carles Pey 19e2553138 Add SMI enumeration mode to the smm_ptr module (#2141)
* Add SMI enumeration mode to the smm_ptr module

Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2024-05-29 10:19:42 -07:00
Mathias Krause cbe7bc39a5 drivers/linux: simplify __swsmi__()
The current implementation of __swsmi__ for x86-64 is rather complicated
as it uses more registers than needed. Simplyfy it.

We can use the passed SMI_CTX buffer as scratch space without the need
to use intermediate registers (beside for RDI, for which we use R10 -- a
callee clobbered register).

Bring the implementation more in line with its OS X counterpart and
adapt the comments and code to reflect reality, namely:
- change the C type members to mirror the used (and intended) registers,
- mark the registers as in/out parameters in the comments,
- drop the bogus comment about clobbering DX, as we don't do that and
- fix and tweak the comment about split i/o because of picky firmwares.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
2022-02-16 08:22:33 -08:00
brentholtsclaw 64beb99e1d Update commments to match changes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2022-01-28 10:52:09 -08:00
BrentHoltsclaw 6d63af8cee Update cpu.asm
update per comments
2022-01-28 10:52:09 -08:00
brentholtsclaw 488b9ca94f Modify swsmi asm to break up B2 and B3
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2022-01-28 10:52:09 -08:00
brentholtsclaw 3fbf973072 Fixup linux swsmi assembly
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2021-06-02 13:27:06 -07:00
abazhaniuk 94fe7f02f1 change setup.py build driver by default. change root directory of chipsec. move WARNING.txt to chipsec. remove PKG-INFO (#107) 2016-10-18 18:19:42 -07:00