Open
Description
Hello~
GS register shouldn't be modified in linux-sgx platform hardware mode (64 bit)
In linux-sgx
get_thread_data
use READ_TD_DATA
assembly macro here, for Enclave Thread Data/Thread Local Storage usage.
And in SGX hardware mode, READ_TD_DATA
use GS
register in 64bit mode as base address of thread data. here
(Note in hardware mode SE_SIM
is undefined)
In wamr
Thus it shouldn't modify GS
register in Enclave.here for example
os_writegsbase
macro is at here

Metadata
Metadata
Assignees
Labels
No labels