Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
41 Views

How to register AEP to handle AEX?

Hi,

    When app is executing in the enclave, can it be interrupted by system clock interrupts?  

    How to register an AEP , which is used as an EENTER parameter, to handle interrupts that caused enclave AEX? I've noted the sgx_register_exception_handler() api , but it's used to handle exceptions and registered in enclave. That's not what I need.

 

Thanks

Yu

 

0 Kudos
1 Reply
Employee
41 Views

The uRTS automatically registers (or provides) the AEP for each enclave call (ECALL).

If an AEX happens, such as a clock interrupt, after the interrupt is served the OS will return control to the AEP, which will then ERESUME into the enclave.

The sgx_register_exception_handler() API is to register a routine that will handle exceptions inside the enclave, for instance if an enclave executes an illegal instruction such as CPUID.

0 Kudos