Patent ID: 8909837

Claim:
A method for executing a system management interrupt, suitable for an electronic apparatus, comprising: when a power on self test (POST) is executed, generating a first identifier and storing the first identifier into a system management mode block of a memory, wherein the system management mode block is hidden under execution of an operating system; during a process of starting the operating system, reading the first identifier from the system management mode block as a second identifier, and storing the second identifier into an operating system block of the memory; after the step of generating the first identifier, ciphering the first identifier into a first ciphered identifier; after the step of reading the first identifier as the second identifier ciphering the second identifier into a second ciphered identifier; when the operating system wants to use a system management interrupt, respectively reading the first identifier and the second identifier from the system management mode block and the operating system block; determining whether the first identifier and the second identifier are the same; and executing the system management interrupt when the first identifier and the second identifier are the same.