Skip to content

Commit 2709c16

Browse files
committed
optee: add comments for optee_example_demo program.
delete test_timer example, which is similar to demo example. Signed-off-by: guibing <[email protected]>
1 parent 8754f63 commit 2709c16

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

optee/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ static TEE_Result pta_timer_set_timeout(uint32_t param_types,
127127

128128
```
129129
130+
*optee_example_demo 程序用来测试安全中断,此程序用到evalsoc上38号测试中断,因为会占用PMP资源,默认是关闭的,optee_example_demo运行会报异常。如需要运行
131+
请把optee-os中SEC_TIMER_TEST 宏定义在代码中使能。*
132+
133+
130134
## 特殊配置
131135
132136
Nuclei某些硬件版本引入了shart csr,能在S模式获取hartid。如果硬件不支持这个特性,可在optee_os/core/arch/riscv/plat-nuclei/conf.mk文件中设置CFG_SHART_FEATURE为n。默认情况下CFG_SHART_FEATURE 开启。

optee/README_en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ static TEE_Result pta_timer_set_timeout(uint32_t param_types,
136136

137137
```
138138
139+
*The optee_example_demo program is used to test secure interrupts. It utilizes Test Interrupt 38 on the evalsoc platform. Since this feature occupies PMP (Physical Memory Protection) resources, it is disabled by default, and running optee_example_demo will trigger an exception. If you need to execute this program, enable the SEC_TIMER_TEST macro in the optee-os source code.*
140+
139141
## Special Configure
140142
141143
Some versions of Nuclei hardware have introduced shart csr, which can obtain hartids in S mode. If the hardware does not support this feature, Setting CFG_SHART_FEATURE Configure to n in the optee_os/core/arch/riscv/plat nuclei/conf.mk file. By default, CFG_SHART_FEATURE is enabled.

0 commit comments

Comments
 (0)