Skip to content

Commit

Permalink
little update OS lab6
Browse files Browse the repository at this point in the history
  • Loading branch information
stormckey committed Dec 10, 2023
1 parent 20aee5a commit 819d962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/blog/posts/OS_lab6.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ nostatistics: true
- thread.sscratch: 子进程在内核态的sscratch,在返回用户态时会与sp交换,所以实质是子进程用户态的sp (1)
- satp: 根据子进程页表修改
- pgd: 子进程页表
- pt_regs: 位于该页高地址
- pt_regs: 位于该页高地址,其中内容在子进程从内核态返回用户态时将会被加载,以下项需要改动
- a0: 返回用户态后携带的调用返回值,也就是子进程得到的fork返回值,0
- sepc: fork对应ecall的下一条指令
- `_traps`: 父进程fork完毕,携带子进程pid恢复用户态上下文返回
Expand Down

0 comments on commit 819d962

Please sign in to comment.