mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
[Pal] add pal_text to pal_control
When LibOS handles signal, it needs to know if it interrupted PAL or not. If it's in PAL, LibOS should queue async signal and handle it later. Signed-off-by: Isaku Yamahata <isaku.yamahata@gmail.com>
This commit is contained in:
@@ -389,6 +389,8 @@ void pal_linux_main(char * uptr_args, uint64_t args_size,
|
||||
pal_state.root_config = root_config;
|
||||
__pal_control.manifest_preload.start = (PAL_PTR) manifest_addr;
|
||||
__pal_control.manifest_preload.end = (PAL_PTR) manifest_addr + manifest_size;
|
||||
__pal_control.pal_text.start = TEXT_START;
|
||||
__pal_control.pal_text.end = TEXT_END;
|
||||
|
||||
if ((rv = init_trusted_platform()) < 0) {
|
||||
SGX_DBG(DBG_E, "Failed to verify the platform using remote attestation: %d\n", rv);
|
||||
|
||||
@@ -227,6 +227,8 @@ void pal_linux_main (void * args)
|
||||
|
||||
ELF_DYNAMIC_RELOCATE(&pal_map);
|
||||
|
||||
__pal_control.pal_text.start = TEXT_START;
|
||||
__pal_control.pal_text.end = TEXT_END;
|
||||
linux_state.environ = envp;
|
||||
|
||||
init_slab_mgr(g_page_size);
|
||||
|
||||
@@ -307,6 +307,8 @@ typedef struct {
|
||||
PAL_PTR_RANGE executable_range;
|
||||
/* manifest preloaded here */
|
||||
PAL_PTR_RANGE manifest_preload;
|
||||
/* pal test area */
|
||||
PAL_PTR_RANGE pal_text;
|
||||
|
||||
/***** Host information *****/
|
||||
/* Host allocation alignment.
|
||||
|
||||
Reference in New Issue
Block a user