Skip to content

Add exception handler to edger8r.#222

Open
kongoshuu wants to merge 1 commit into
intel:mainfrom
kongoshuu:exception_handler
Open

Add exception handler to edger8r.#222
kongoshuu wants to merge 1 commit into
intel:mainfrom
kongoshuu:exception_handler

Conversation

@kongoshuu
Copy link
Copy Markdown

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.

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>
@ghost
Copy link
Copy Markdown

ghost commented Mar 9, 2018

What is the motivation to high light the exception function in the edl file?

@kongoshuu
Copy link
Copy Markdown
Author

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 ).

@ghost
Copy link
Copy Markdown

ghost commented Mar 15, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant