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

tinusb: Fix usbd_stack memory alignment #3166

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Mar 16, 2024

usbd_stack could be placed at memory with wrong alignment. For pic32 with FPU enabled that results in exceptions when code tries to store/restore FPU registers.

Now OS_TASK_STACK_DEFINE is used that forces correct alignment.

usbd_stack could be placed at memory with wrong alignment.
For pic32 with FPU enabled that results in exceptions
when code tries to store/restore FPU registers.

Now OS_TASK_STACK_DEFINE is used that forces correct alignment.
@kasjer kasjer requested a review from sjanc March 16, 2024 11:05
@kasjer kasjer merged commit 4bba3b7 into apache:master Mar 20, 2024
17 checks passed
@kasjer kasjer deleted the kasjer/tinyusb-fix-stack-alignment branch March 20, 2024 09:41
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.

2 participants