Skip to content

Commit

Permalink
Update rpi-os.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fxlin committed Feb 21, 2024
1 parent 3b05c39 commit 82f6c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/exp5/rpi-os.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,10 @@ New addition is made to the middle of the [ret_from_fork](https://github.com/fxl
.globl ret_from_fork
ret_from_fork:
bl schedule_tail
cbz x19, ret_to_user // not a kernel thread
cbz x19, ret_to_user // not a kernel thread, go to ret_to_user
mov x0, x20
blr x19
// kernel thread returns, and continues below
ret_to_user:
bl disable_irq
kernel_exit 0
Expand Down

0 comments on commit 82f6c3a

Please sign in to comment.