Skip to content

a question in Tutorial 09 - Privilege Level #145

Closed

Description

@sunshine-lcc

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?

Activity

  1. andre-richter commented on Feb 22, 2022

    @andre-richter
    Member

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

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

  2. locked and limited conversation to collaborators on Feb 22, 2022
  3. converted this issue into a discussion #146 on Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions