Patent ID: 11874743
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. A method for handling a trusted execution environment operating system crash, the method comprising:
providing, in an electronic device comprising a trusted execution environment (TEE) and a rich execution environment (REE), an REE operating system (OS) in the REE and a TEE OS in the TEE, wherein the TEE provides a security service for the REE;
receiving, by the REE OS, a first notification in a process in which the security service is called in the REE, wherein the first notification indicates that the TEE OS has crashed;
storing, by the REE OS, a security context of the REE, suspending the security service, and sending a second notification to the TEE OS to indicate to restart the TEE OS;
receiving, by the REE OS, a third notification, wherein the third notification is a notification that is sent by the TEE OS to the REE OS after the TEE OS sets a hardware status parameter of the TEE obtained after the TEE OS is restarted;
setting, by the REE OS based on the stored security context of the REE, a security context of the REE obtained after the TEE OS is restarted;
receiving, by the REE OS, a fourth notification, wherein the fourth notification is a notification that is sent by the TEE OS to the REE OS after the TEE OS sets a context of the TEE obtained after the TEE OS is restarted; and
restoring, by the REE OS, the security service.