-
-
Notifications
You must be signed in to change notification settings - Fork 848
a question in Tutorial 09 - Privilege Level #146
Unanswered
sunshine-lcc
asked this question in
Tutorial Questions
-
In the article in Tutorial 09 - Privilege Level, I realize how to switch to EL1, but I have a question that if I want to pass some parameter to EL1 function, like kernel_init(arg1, arg2)
, what can I do for this? Could you please help me?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
You‘ll need to put these arguments in the CPU registers before the eret
.
arg1 == x0, arg2 == x1, etc.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment