Add exception handler to edger8r. - #222
Conversation
Add a exception_handler to the edger8r. If any function in .edl file is marked as "exception_handler", it should be set the "is_exception" field in the ecall table. This is used for users to set their own exception, like signal handler. Signed-off-by: Chong Cai<chongc@google.com>
|
What is the motivation to high light the exception function in the edl file? |
|
This is used when a user what to register their own exception handler. They can design their own exception handling that enters an enclave by highlighting the ecall as "exception_handler". Another PR has the changed code that deals with this flag (#223 ). |
|
The alternative solution is, when the application get the SIGCHLD, SIGUSR1, SIGRTMIN + n, etc, the application can use another free thread to handle this exception. |
|
Important 🔀 The Intel® SGX SDK codebase has movedThank you for your contribution! If you have any questions or need assistance migrating, please ask here. As we complete the migration, older pull requests may eventually be closed. No work is lost, though, and you are welcome to re-open your change in the new repository at any time. Footnotes
|
Add a exception_handler to the edger8r. If any function in .edl file is marked
as "exception_handler", it should be set the "is_exception" field in the ecall
table. This is used for users to set their own exception, like signal
handler.