Lines Matching full:tcs
134 * Return the offset in the enclave where the TCS segment can be found.
135 * The first RW segment loaded is the TCS.
153 * The first RW segment loaded is the TCS, skip that to get info on the
290 self->run.tcs = self->encl.encl_base; in TEST_F()
363 self->run.tcs = self->encl.encl_base; in TEST_F()
429 self->run.tcs = self->encl.encl_base;
512 self->run.tcs = self->encl.encl_base; in TEST_F()
548 self->run.tcs = self->encl.encl_base; in TEST_F()
572 * Sanity check that it is possible to enter either of the two hardcoded TCS
581 self->run.tcs = self->encl.encl_base; in TEST_F()
592 /* Move to the next TCS. */ in TEST_F()
593 self->run.tcs = self->encl.encl_base + PAGE_SIZE; in TEST_F()
626 self->run.tcs = self->encl.encl_base; in TEST_F()
718 * Modifying permissions of TCS page should not be possible.
728 self->run.tcs = self->encl.encl_base; in TEST_F()
754 * Attempt to make TCS page read-only. This is not allowed and in TEST_F()
791 self->run.tcs = self->encl.encl_base; in TEST_F()
915 * need different TCS from where EPCM permission can be made writable in TEST_F()
918 self->run.tcs = self->encl.encl_base + PAGE_SIZE; in TEST_F()
921 * Enter enclave at new TCS to change EPCM permissions to be in TEST_F()
938 * Attempt to return to main TCS to resume execution at faulting in TEST_F()
941 self->run.tcs = self->encl.encl_base; in TEST_F()
946 * Resume execution in main TCS to re-attempt the memory access. in TEST_F()
948 self->run.tcs = self->encl.encl_base; in TEST_F()
992 self->run.tcs = self->encl.encl_base; in TEST_F()
1056 self->run.tcs = self->encl.encl_base + PAGE_SIZE; in TEST_F()
1071 /* Can now return to main TCS to resume execution. */ in TEST_F()
1072 self->run.tcs = self->encl.encl_base; in TEST_F()
1122 self->run.tcs = self->encl.encl_base; in TEST_F()
1216 * Create a new TCS, consisting out of three new pages (stack page with regular
1217 * page type, SSA page with regular page type, and TCS page with TCS page
1221 * same address that previously hosted the TCS page and verify that it can
1233 void *addr, *tcs, *stack_end, *ssa; in TEST_F() local
1244 self->run.tcs = self->encl.encl_base; in TEST_F()
1268 * Add three regular pages via EAUG: one will be the TCS stack, one in TEST_F()
1269 * will be the TCS SSA, and one will be the new TCS. The stack and in TEST_F()
1270 * SSA will remain as regular pages, the TCS page will need its in TEST_F()
1300 tcs = (void *)self->encl.encl_base + total_size + PAGE_SIZE; in TEST_F()
1338 eaccept_op.epc_addr = (unsigned long)tcs; in TEST_F()
1349 * Three new pages added to enclave. Now populate the TCS page with in TEST_F()
1356 * New TCS will use the "encl_dyn_entry" entrypoint that expects in TEST_F()
1357 * stack to begin in page before TCS page. in TEST_F()
1362 init_tcs_page_op.tcs_page = (unsigned long)tcs; in TEST_F()
1374 /* Change TCS page type to TCS. */ in TEST_F()
1389 /* EACCEPT new TCS page from enclave. */ in TEST_F()
1390 eaccept_op.epc_addr = (unsigned long)tcs; in TEST_F()
1403 /* Run workload from new TCS. */ in TEST_F()
1404 self->run.tcs = (unsigned long)tcs; in TEST_F()
1432 * Remove pages associated with new TCS, create a regular page in TEST_F()
1433 * where TCS page used to be and verify it can be used as a regular in TEST_F()
1453 * Enter enclave via TCS #1 and approve page removal by sending in TEST_F()
1456 self->run.tcs = self->encl.encl_base; in TEST_F()
1471 eaccept_op.epc_addr = (unsigned long)tcs; in TEST_F()
1507 * Enter enclave via TCS #1 and access location where TCS #3 was to in TEST_F()
1510 eaccept_op.epc_addr = (unsigned long)tcs; in TEST_F()
1527 put_addr_op.addr = (unsigned long)tcs; in TEST_F()
1542 get_addr_op.addr = (unsigned long)tcs; in TEST_F()
1574 self->run.tcs = self->encl.encl_base; in TEST_F()
1685 self->run.tcs = self->encl.encl_base; in TEST_F()
1800 self->run.tcs = self->encl.encl_base; in TEST_F()
1946 self->run.tcs = self->encl.encl_base; in TEST_F()
1965 * Enter enclave via TCS #1 and approve page removal by sending in TEST_F()