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

Feature/usys transition #279

Open
wants to merge 2 commits into
base: riscv
Choose a base branch
from

Conversation

echtwerner
Copy link

xv6 is written in c and assembly. So why using a perl script to create the user/usys.S file?
A a new helper tools/usys.c will replace user/usys.pl.
The helper mkfs/mkfs.c will be moved to tools/mkfs.c, so all helpers with are needed in the build process are in one location.
The Makefile is updated to reflect this changes.

tools/usys.c will create usys.S based on the definitions in kernel/syscall.h, no need to update usys.c for new syscalls.

I did a red/green test to see if the usys.S files contains everything (Due to the way it is generated in usys.pl the order is a bit different).

I would appreciate if this change could be merged.

The whole xv6 is written in c and assembly. So why using a perl script to create the user/usys.S file.
This commit will create a new helper tools/usys.c and also moves the helper mkfs/mkfs.c to tools/mkfs.c.
The Makefile is updated to reflect this changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant