mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
[Linux-SGX] Remove that weird hack with int3 skipping
This commit is contained in:
committed by
Dmitrii Kuvaiskii
parent
7e20a8044c
commit
01eea09519
@@ -146,10 +146,7 @@ static void save_pal_context(PAL_CONTEXT* ctx, sgx_cpu_context_t* uc,
|
||||
static bool handle_ud(sgx_cpu_context_t * uc)
|
||||
{
|
||||
uint8_t * instr = (uint8_t *) uc->rip;
|
||||
if (instr[0] == 0xcc) { /* skip int 3 */
|
||||
uc->rip++;
|
||||
return true;
|
||||
} else if (instr[0] == 0x0f && instr[1] == 0xa2) {
|
||||
if (instr[0] == 0x0f && instr[1] == 0xa2) {
|
||||
/* cpuid */
|
||||
unsigned int values[4];
|
||||
if (!_DkCpuIdRetrieve(uc->rax & 0xffffffff,
|
||||
|
||||
Reference in New Issue
Block a user