Skip to content

SVC calls usually take arguments #89

@jonathanpallant

Description

@jonathanpallant

Syscalls using SVC instructions usually pass arguments in r0, r1, etc. Our default handler pushes these registers to the stack, so we could pass the Rust handler a pointer to those preserved values on the stack. If we supplied a mutable pointer, they could even modify them to return values back to the caller.

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