]> xenbits.xensource.com Git - seabios.git/commit
smm: Replace SMI assembler code with C code.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 7 Apr 2014 23:49:12 +0000 (19:49 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 4 Jun 2014 15:06:58 +0000 (11:06 -0400)
commitf4c511cd7a5a475d542389341a320cb1c946fe25
tree01333f28304bfaf0b309c274439a797099e9412e
parent2126994528a160f56fbaa6e5f0a2da9c0d628095
smm: Replace SMI assembler code with C code.

Convert the SMI handler from assembly to C.  This makes the handler
easier to understand and enhance.

The new handler will use references to the reserved memory at
0xf0000-0x100000.  If the physical memory in that range is modified at
runtime, then the SMI handler will cease to function properly (and may
allow unintended code to run in SMM mode).  However, that area is
marked as reserved and is normally made read-only at runtime, so there
is little risk in relying on it.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/config.h
src/fw/smm.c
src/romlayout.S