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

Support call stack spilling for unprotected outcalls #2

Open
jovanbulck opened this issue Jun 28, 2017 · 0 comments
Open

Support call stack spilling for unprotected outcalls #2

jovanbulck opened this issue Jun 28, 2017 · 0 comments
Labels

Comments

@jovanbulck
Copy link
Member

Regarding inter-SM function calls, sancus-cc currently only supports up to four 16-bit arguments to be passed in CPU registers. As such, we do not support inter-SM calls that involve spilling function arguments on the callee's call stack.

In case an SM calls the unprotected domain (e.g., printf), however, the compiler should be able to generate code that spills arguments on the unprotected call stack (i.e., using __unprotected_sp).

gianlu33 added a commit to AuthenticExecution/sancus-compiler that referenced this issue Oct 20, 2021
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

1 participant