mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.98k stars 2.58k forks source link

No need to store TRAPFRAME in sscratch register #98

Closed segfauIt closed 2 years ago

segfauIt commented 2 years ago

TRAPFRAME is a fixed virtual address in the user page table, we can use it directly.

rtmrtmrtmrtm commented 2 years ago

Thank you -- we plan to adopt this idea.