mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user