Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a0 vs a7 for system calls #37

Open
TheThirdOne opened this issue Jul 24, 2020 · 1 comment
Open

a0 vs a7 for system calls #37

TheThirdOne opened this issue Jul 24, 2020 · 1 comment
Assignees
Labels

Comments

@TheThirdOne
Copy link

TheThirdOne commented Jul 24, 2020

Jupiter uses a0 for the system call number. Most other simulators/kernels use a7 for the system call number. Notably, spike with pk, rv8, qemu for userspace, RARS, and RIPES all use a7. Venus would be the notable simulator that uses a0.

Would you be interested in changing to use a7 instead of a0? I would be willing to make a PR, but wanted to get a "go ahead"
before I start.

@andrescv
Copy link
Owner

Yes absolutely, in the beginning of the project I thought that register a0 would be a good choice for system calls because we used to use Venus in classroom. If you could make a PR with that change, go ahead totally agree with the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants