mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 15:39:36 +00:00
[Pal/Linux-SGX] Remove duplicated reg clearing on sgx_ocall
%rdx, %rbp, %r8-%r15 are cleared twice unnecessarily on sgx_ocall.
This commit is contained in:
committed by
Michał Kowalczyk
parent
246b9a6fad
commit
70050a5fa3
@@ -431,17 +431,6 @@ sgx_ocall:
|
||||
|
||||
pushq %rbp
|
||||
|
||||
xorq %rdx, %rdx
|
||||
xorq %r8, %r8
|
||||
xorq %r9, %r9
|
||||
xorq %r10, %r10
|
||||
xorq %r11, %r11
|
||||
xorq %r12, %r12
|
||||
xorq %r13, %r13
|
||||
xorq %r14, %r14
|
||||
xorq %r15, %r15
|
||||
xorq %rbp, %rbp
|
||||
|
||||
.Locall_before_set_ocall_prepared:
|
||||
movq $1, %gs:SGX_OCALL_PREPARED
|
||||
.Locall_after_set_ocall_prepared:
|
||||
|
||||
Reference in New Issue
Block a user