Fixed SMM, now it works correctly, and is now also operating on all CPU's from 386 onwards.

This commit is contained in:
OBattler
2020-03-29 18:12:43 +02:00
parent 0092500af9
commit 66e159e0bf
17 changed files with 597 additions and 404 deletions

View File

@@ -950,10 +950,13 @@ static int opWRMSR(uint32_t fetchdat)
static int opRSM(uint32_t fetchdat)
{
if(!in_smm)
if (in_smm)
{
leave_smm();
if(smi_latched) enter_smm();
leave_smm();
if (smi_latched) {
smi_latched = 0;
enter_smm();
}
CPU_BLOCK_END();
return 0;
}