Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2518: Publish return code defines for vectored exception handling r=jhand2 a=jhand2

The vectored exception handling feature is published as a public API but the return code defines OE_EXCEPTION_CONTINUE_SEARCH and OE_EXCEPTION_CONTINUE_EXECUTION are in internal headers. Move these to enclave.h where oe_add_vectored_exception_handler resides.

Co-authored-by: Jordan Hand <[email protected]>
  • Loading branch information
oeciteam and jhand2 committed Feb 12, 2020
2 parents c6f73e7 + baf2a8f commit 50b9a45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions include/openenclave/bits/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@

OE_EXTERNC_BEGIN

/** Return value used by an enclave vectored exception handler to indicate
* to the dispatcher that it should continue searching for the next handler. */
#define OE_EXCEPTION_CONTINUE_SEARCH 0x0

/** Return value used by an enclave vectored exception handler to indicate
* to the dispatcher that it should stop searching and continue execution. */
#define OE_EXCEPTION_CONTINUE_EXECUTION 0xFFFFFFFF

/**
* Divider exception code, used by vectored exception handler.
*/
Expand Down
3 changes: 0 additions & 3 deletions include/openenclave/internal/calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ typedef enum _oe_func

OE_STATIC_ASSERT(sizeof(oe_func_t) == sizeof(unsigned int));

#define OE_EXCEPTION_CONTINUE_SEARCH 0x0
#define OE_EXCEPTION_CONTINUE_EXECUTION 0xFFFFFFFF

/*
**==============================================================================
**
Expand Down

0 comments on commit 50b9a45

Please sign in to comment.