Commit 03adecd
committed
Handle U-mode ecall for syscall dispatch
Adds exception handler for U-mode ecall instructions to dispatch
system calls. Extracts syscall number and arguments from the saved
register context and returns results through the same mechanism.
This design enables privilege separation by allowing user-mode tasks
to request kernel services without direct access to privileged
operations, addressing the security issue where tasks could bypass
isolation by executing in M-mode.1 parent f36e7c5 commit 03adecd
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
324 | 349 | | |
325 | 350 | | |
326 | 351 | | |
| |||
0 commit comments