[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:
Isaku Yamahata
2020-01-29 20:45:55 -08:00
parent fe9f782435
commit 659fc7acdf
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -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);
+2
View File
@@ -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);
+2
View File
@@ -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.