Invention Grant
- Patent Title: Method and apparatus for executing non-maskable interrupt
-
Application No.: US16592144Application Date: 2019-10-03
-
Publication No.: US10970108B2Publication Date: 2021-04-06
- Inventor: Jun Ma , Tianhong Ding , Zhaozhe Tong
- Applicant: HUAWEI TECHNOLOGIES CO., LTD.
- Applicant Address: CN Guangdong
- Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee Address: CN Guangdong
- Agency: Fish & Richardson P.C.
- Priority: CN201510677146.4 20151016
- Main IPC: G06F9/48
- IPC: G06F9/48 ; G06F13/24 ; G06F1/24 ; G06F11/07

Abstract:
The present invention discloses a method and an apparatus for executing a non-maskable interrupt. The method includes: obtaining a secure interrupt request in a non-secure mode, and interrupting an operation of an operating system OS, where the secure interrupt request cannot be masked; entering a secure mode by using the secure interrupt request, and saving, in the secure mode, an interrupt context of an OS status when the operation of the OS is interrupted; returning to the non-secure mode to execute user-defined processing; after the user-defined processing is completed, entering the secure mode again, and resuming the OS status in the secure mode according to the interrupt context; and returning to the non-secure mode again, and continuing to execute an operation of the OS. The method and the apparatus for executing a non-maskable interrupt in embodiments of the present invention can easily implement an NMI mechanism without depending on hardware.
Public/Granted literature
- US20200034187A1 Method And Apparatus For Executing Non-Maskable Interrupt Public/Granted day:2020-01-30
Information query