Commit 55a3667
Fix error code return for OP-TEE syscall dispatch (#999)
This PR fixes the error code return of OP-TEE syscall dispatching.
Instead of returning `Errno` (Linux), it now returns `TeeResult`
(OP-TEE) to the TA/ldelf if its syscall request is invalid (e.g.,
nonexistent/unsupported syscall, invalid arguments, ...).
Co-authored-by: Sangho Lee <[email protected]>1 parent faba6c9 commit 55a3667
2 files changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1149 | 1163 | | |
1150 | 1164 | | |
1151 | 1165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | | - | |
| 386 | + | |
388 | 387 | | |
389 | 388 | | |
390 | 389 | | |
| |||
664 | 663 | | |
665 | 664 | | |
666 | 665 | | |
667 | | - | |
668 | | - | |
| 666 | + | |
669 | 667 | | |
670 | 668 | | |
671 | 669 | | |
| |||
0 commit comments