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

Exception handlers should share a stack #99

Open
projectgus opened this issue Feb 23, 2016 · 0 comments
Open

Exception handlers should share a stack #99

projectgus opened this issue Feb 23, 2016 · 0 comments

Comments

@projectgus
Copy link
Contributor

As mentioned originally by @foogod and came up again in #75, exception handlers use the current running task's stack space.

This means the minimal stack size is around 128 words (512 bytes), even for very simple tasks.

A more resource-friendly option will be to have a single exception handler stack that is switched to whenever exceptions run. The NMI already does this, but the "normal" exception handlers do not.

Additionally, if we get a bit more of the lower layers reverse engineered then it may be possible to change any stack-intensive parts of the handlers to use statically allocated memory instead.

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

No branches or pull requests

1 participant