change(esp_tee): Move the internal memory secure service call table to IRAM

- Using PMA, the TEE IRAM is marked as R/X while TEE DRAM is marked as R/W.
  Moving the internal memory secure service call table from DRAM to IRAM
  makes it immutable.
This commit is contained in:
Laukik Hase
2026-04-13 12:43:26 +05:30
parent 338f341110
commit 764626a1b7
@@ -13,7 +13,7 @@
#pragma GCC diagnostic ignored "-Woverride-init"
#endif
const DRAM_ATTR secure_service_entry_t tee_sec_srv_tbl_int_mem[] = {
const IRAM_ATTR secure_service_entry_t tee_sec_srv_tbl_int_mem[] = {
[0 ... SECURE_SERVICES_SPLIT_ID - 1] = { .func = NULL, .nargs = 0 },
#define __SECURE_SERVICE(NR, SYM, ARGC) [NR] = { .func = _ss_##SYM, .nargs = ARGC },
#include "secure_service_int.h"