Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

a question in Tutorial 09 - Privilege Level #146

Unanswered
sunshine-lcc asked this question in Tutorial Questions
Discussion options

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?

You must be logged in to vote

Replies: 1 comment

Comment options

You‘ll need to put these arguments in the CPU registers before the eret.

arg1 == x0, arg2 == x1, etc.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #145 on February 22, 2022 07:06.

AltStyle によって変換されたページ (->オリジナル) /