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

[Discussion] Integrating port specific syscall proxies #12349

Open
g2gps opened this issue May 15, 2024 · 1 comment
Open

[Discussion] Integrating port specific syscall proxies #12349

g2gps opened this issue May 15, 2024 · 1 comment

Comments

@g2gps
Copy link
Contributor

g2gps commented May 15, 2024

With the risc-v/litex port, we're able to access the TIME and TIMEH CSRs in usermode. I would like take advantage of this feature to replace the proxies for syscalls, such as timer_gettime, with an equivalent implementation that avoids a context switch, where appropriate.

I understand that the syscall.csv database is used to generate the syscall proxies and stubs, but there doesn't seem to be any facility to provide a different implementation. Potentially, I could remove the desired syscalls from syscall.csv and provide my own proxy which is linked into libproxies, but it would be nice if this was more generally supported, rather than patching the kernel locally.

I'd be interested to know if anyone has had a similar idea, or potentially there is a method to achieve this in NuttX which I have overlooked.

@acassis
Copy link
Contributor

acassis commented May 15, 2024

@g2gps I suggest you to send thing discussion to mailing list as well.

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

No branches or pull requests

2 participants