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

Claim 13:
14. A computer system, comprising:
a rich execution environment (REE) comprising an REE operating system (REE OS) and a second storage unit; and
a trusted execution environment (TEE) to provide a security service for the REE, wherein the TEE comprises:
a TEE OS configured to run the security service;
a first storage unit configured to: in a process in which the TEE OS runs the security service, if the TEE OS crashes, store a hardware status parameter of the TEE, and
a restarting unit configured to restart the TEE OS, wherein

the second storage unit is configured to store a security context of the REE;
the REE OS is further configured to suspend calling of the security service;
the TEE OS is further configured to set, based on the stored hardware status parameter of the TEE, a hardware status parameter of the TEE obtained after the TEE OS is restarted;
the REE OS is further configured to set, based on the stored security context of the REE, a security context of the REE obtained after the TEE OS is restarted; the TEE OS is further configured to set, based on the stored security context of the REE, a context of the TEE obtained after the TEE OS is restarted; and
the REE OS is further configured to restore calling of the security service.