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

cleanup DSP usage #2

Open
andreiw opened this issue Nov 17, 2015 · 0 comments
Open

cleanup DSP usage #2

andreiw opened this issue Nov 17, 2015 · 0 comments

Comments

@andreiw
Copy link
Owner

andreiw commented Nov 17, 2015

Initially sp was used as DSP, but since the Linux userspace runs with 16-byte stack alignment enforced, it becomes awkward to manipulate sp and I picked another callee-save register. sp is now synchronized with DSP only across C ABI calls.

But there's still code that does things like "mov SCRATCH0, DSP; cmp SCRATCH0, SCRATCH1".

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

1 participant