| 数据搜索系统,热门电子元器件搜索 |
|
AM486DX2 数据表(PDF) 44 Page - Advanced Micro Devices |
|
|
|||||||||||||||||||||||||||||
AM486DX2 数据表(HTML) 44 Page - Advanced Micro Devices |
|
44 / 67 page ![]() 44 Am5X86 Microprocessor AMD PRELIMINARY 7.4 Entering System Management Mode SMM is one of the major operating modes, along with Protected mode, Real mode, and Virtual mode. Figure 27 shows how the processor can enter SMM from any of the three modes and then return. The external signal SMI causes the processor to switch to SMM. The RSM instruction exits SMM. SMM is trans- parent to applications, programs, and operating sys- tems for the following reasons: s The only way to enter SMM is via a type of non- maskable interrupt triggered by an external signal s The processor begins executing SMM code from a separate address space, referred to earlier as sys- tem management RAM (SMRAM) s Upon entry into SMM, the processor saves the reg- ister state of the interrupted program (depending on the save mode) in a part of SMRAM called the SMM context save space s All interrupts normally handled by the operating sys- tem or applications are disabled upon SMM entry s A special instruction, RSM, restores processor reg- isters from the SMM context save space and returns control to the interrupted program Similar to Real mode, SMM has no privilege levels or address mapping. SMM programs can execute all I/O and other system instructions and can address up to 4 Gbytes of memory. 7.5 Exiting System Management Mode The RSM instruction (opcode 0F AAh) leaves SMM and returns control to the interrupted program. The RSM instruction can be executed only in SMM. An attempt to execute the RSM instruction outside of SMM generates an invalid opcode exception. When the RSM instruction is executed and the processor detects invalid state in- formation during the reloading of the save state, the processor enters the shutdown state. This occurs in the following situations: s The value in the State Dump base field is not a 32-Kbyte aligned address s A combination of bits in CR0 is illegal: (PG=1 and PE=0) or (NW=1 and CD=0) In Shutdown mode, the processor stops executing in- structions until an NMI interrupt is received or reset ini- tialization is invoked. The processor generates a shutdown bus cycle. Three SMM features can be enabled by writing to control slots in the SMRAM state save area: 1. Auto HALT Restart. It is possible for the SMI re- quest to interrupt the HALT state. The SMI handler can tell the RSM instruction to return control to the HALT instruction or to return control to the instruc- tion following the HALT instruction by appropriately setting the Auto HALT Restart slot. The default op- eration is to restart the HALT instruction. 2. I/O Trap Restart. If the SMI was generated on an I/O access to a powered-down device, the SMI han- dler can instruct the RSM instruction to re-execute that I/O instruction by setting the I/O Trap Restart slot. 3. SMBASE Relocation. The system can relocate the SMRAM by setting the SMBASE Relocation slot in the state save area. The RSM instruction sets SM- BASE in the processor based on the value in the SMBASE relocation slot. The SMBASE must be aligned on 32-Kbyte boundaries. A RESET also causes execution to exit from SMM. 7.6 Processor Environment When an SMI signal is recognized on an instruction ex- ecution boundary, the processor waits for all stores to complete, including emptying the write buffers. The final write cycle is complete when the system returns RDY or BRDY. The processor then drives SMIACT active, saves its register state to SMRAM space, and begins to execute the SMI handler. SMI has greater priority than debug exceptions and ex- ternal interrupts. This means that if more than one of these conditions occur at an instruction boundary, only the SMI processing occurs. Subsequent SMI requests are not acknowledged while the processor is in SMM. The first SMI request that occurs while the processor is in SMM is latched, and serviced when the processor exits SMM with the RSM instruction. Only one SMI signal is latched by the CPU while it is in SMM. When the CPU invokes SMM, the CPU core registers are initialized as indicated in Table 11. Virtual mode System Management mode Reset Reset or RSM SMI RSM RSM VM=1 PE=1 Reset or PE=0 VM=0 Figure 27. Transition to and from SMM Real mode Protected mode SMI SMI |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |