METHOD FOR SELF-DIAGNOSING SYSTEM MANAGEMENT INTERRUPT HANDLER
First Claim
Patent Images
1. A method for self-diagnosing a system management interrupt (SMI) handler, suitable for a computer system, the method for self-diagnosing the SMI handler comprising:
- executing the SMI handler by a central processing unit (CPU) when a SMI is triggered to the CPU;
obtaining a first time value from an advanced configuration and power interface (ACPI) timer at a time of executing the SMI handler;
obtaining a source path of the SMI;
obtaining a second time value from the ACPI timer at a time of finishing the SMI handler after execution of the SMI handler is finished;
comparing an execution time of the SMI handler to a time-out value, wherein the execution time is equal to a difference between the second time value and the first time value; and
recording the execution time, the source path and the time-out value in a memory if the execution time is greater than or equal to the time-out value.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for self-diagnosing a system management interrupt (SMI) handler is provided. A first time value is obtained from an advanced configuration and power interface (ACPI) timer at a time of executing the SMI handler. And a source path of a SMI is obtained. Then, a second time value is obtained from the ACPI timer at a time of finishing the SMI handler. An execution time is obtained according to the first time and the second time. If the execution time is greater than or equal to a time-out value, related information of the SMI is recorded.
20 Citations
9 Claims
-
1. A method for self-diagnosing a system management interrupt (SMI) handler, suitable for a computer system, the method for self-diagnosing the SMI handler comprising:
-
executing the SMI handler by a central processing unit (CPU) when a SMI is triggered to the CPU; obtaining a first time value from an advanced configuration and power interface (ACPI) timer at a time of executing the SMI handler; obtaining a source path of the SMI; obtaining a second time value from the ACPI timer at a time of finishing the SMI handler after execution of the SMI handler is finished; comparing an execution time of the SMI handler to a time-out value, wherein the execution time is equal to a difference between the second time value and the first time value; and recording the execution time, the source path and the time-out value in a memory if the execution time is greater than or equal to the time-out value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification