From 82f6c3a3422295e05615143f534f546dffe38981 Mon Sep 17 00:00:00 2001 From: fxlin Date: Tue, 20 Feb 2024 23:31:47 -0500 Subject: [PATCH] Update rpi-os.md --- docs/exp5/rpi-os.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/exp5/rpi-os.md b/docs/exp5/rpi-os.md index 36715aea..7b341257 100644 --- a/docs/exp5/rpi-os.md +++ b/docs/exp5/rpi-os.md @@ -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