SMM, unreal mode and other operating modes

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

SMM, unreal mode and other operating modes

Post by lopidas »

Hello, I want to talk about the things in topic

I have one request: please put your references in your post.

Small recapitulation:
Operating modes are according to Intel64 manual volume 3 figure 2-3 and AMD64 manual volume 1 figure 1-6:
Real mode
Virtual8086 mode
Protected mode
SMM
IA-32e mode (long mode)
SMM is entered with SMI according to AMD64 manual volume 2 10.3.1 and Intel vol 1 section 3.1 says APIC can send it.

Can I use APIC with MSRs to execute my own code in SMM?

What will happen if I will load descriptors with 64-bit GDT entries in compatibility submode and then switch to real mode.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: SMM, unreal mode and other operating modes

Post by Combuster »

"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked