Skip to content

about the Return Address Stack(RAS) #65

Description

@xubaqian

Hi. I have some questions about the RAS.

It seems the RAS is shared between OS and user program, and I wonder if it is shared between different threads. If it is, then if I configure a single core with 1 thread in config/default.conf

    min_contexts: 1
    max_contexts: 1

can this guarantee that the RAS is only occupied by one program at runtime?

And for multiple threads, how can I save/restore the RAS when context switch? Modify OS or MARSSx86?

If it is not shared, where is the code that saves/restores the RAS when context switch?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions