# US 8,578,138 B2 · Enabling storage of active state in internal storage of processor rather than in SMRAM upon entry to system management mode

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,138 B2
- Document ID: US8578138B2
- Status: Granted
- Kind: B2
- Application number: 12/550,737
- Filed: 2009-08-31
- Published: 2011-03-03
- Granted: 2013-11-05
- Earliest claimed: 2009-08-31
- Assignees: Intel Corporation
- Applicants: Mahesh S. Natu; Thanunathan Rangarajan; Gautam B. Doshi; Shammanna M. Datta; Baskaran Ganesan; Mohan J. Kumar; Rajesh S. Parthasarathy; Frank Binns; Rajesh Nagaraja Murthy; Robert C. Swanson
- Inventors: Mahesh S. Natu; Thanunathan Rangarajan; Gautam B. Doshi; Shammanna M. Datta; Baskaran Ganesan; Mohan J. Kumar; Rajesh S. Parthasarathy; Frank Binns; Rajesh Nagaraja Murthy; Robert C. Swanson
- Web page: https://patentgrep.com/patent/US8578138B2

## CPC

- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 9/30101: {Special purpose registers}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/461: {Saving or restoring of program or task context}
- G11C 7/1072: {for memories with random access ports synchronised on clock signal pulse trains, e.g. synchronous memories, self timed memories}
- G11C 11/40615: {Internal triggering or timing of refresh, e.g. hidden refresh, self refresh, pseudo-SRAMs}
- G06F 9/3017: {Runtime instruction translation, e.g. macros}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

In one embodiment, the present invention includes a processor that has an on-die storage such as a static random access memory to store an architectural state of one or more threads that are swapped out of architectural state storage of the processor on entry to a system management mode (SMM). In this way communication of this state information to a system management memory can be avoided, reducing latency associated with entry into SMM. Embodiments may also enable the processor to update a status of executing agents that are either in a long instruction flow or in a system management interrupt (SMI) blocked state, in order to provide an indication to agents inside the SMM. Other embodiments are described and claimed.

## Claims

### Claim 1

A processor comprising:
a processor core to execute instructions and to enter a system management mode (SMM), wherein upon entry to the SMM the processor core is to store an active state present in an architectural state storage of the processor core into a storage unit of the processor separate from the architectural state storage and to set up a SMM execution environment for execution of a SMM handler by insertion of values associated with the SMM into the architectural state storage, and a first status register to store an indicator to indicate that the processor core is enabled to store the active state in the storage unit and not in a system management random access memory (SMRAM).

### Claim 2 (depends on 1)

The processor of claim 1, wherein the processor core is to expose information stored in the storage unit as machine specific registers (MSRs) accessible only to SMM code.

### Claim 3 (depends on 1)

The processor of claim 1, wherein the first status register can only be updated by an agent executing in the SMM.

### Claim 4 (depends on 1)

The processor of claim 1, wherein the processor core is to execute SMM code stored in the SMRAM.

### Claim 5 (depends on 4)

The processor of claim 4, wherein when the SMM is to resolve a memory error, the processor core is to obtain recovery SMM code from a non-volatile memory and not to obtain the SMM code from the SMRAM.

### Claim 6 (depends on 1)

The processor of claim 1, further comprising a second status register to store an indicator to indicate that a logical processor of the processor core is in a long flow operation.

### Claim 7 (depends on 6)

The processor of claim 6, further comprising a third status register to store an indicator to indicate that a logical processor of the processor core is in a system management interrupt (SMI)-inhibited state.

### Claim 8 (depends on 7)

The processor of claim 7, further comprising a SMM indicator map to store an indication of each logical processor of the processor core that has entered the SMM.

### Claim 9 (depends on 7)

The processor of claim 7, wherein the first, second and third status registers are non-writable outside of the SMM.

### Claim 10 (depends on 1)

The processor of claim 1, further comprising a monarch processor to execute the SMM without all logical processors of the processor core having performed a rendezvous to enter into a state in the SMM in which a logical processor has set an indicator to indicate entry of the logical processor into the SMM.

### Claim 11 (depends on 10)

The processor of claim 10, wherein the monarch processor is to access a first status register that indicates that a logical processor of the processor core is in a long flow operation, a second status register that indicates that a logical processor of the processor core is in a SMI-inhibited state and a SMM indicator map that indicates each logical processor of the processor core that has entered the SMM, and based thereon to determine whether to perform a requested SMM operation without all of the logical processors having performed the rendezvous.

### Claim 12 (depends on 11)

The processor of claim 11, wherein the monarch processor is to perform the requested SMM operation without all of the logical processors having performed the rendezvous if each logical processor of the processor core has entered the SMM, is in a long flow operation, or is in a SMI-inhibited state.
