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

Remove heap allocation #21

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Remove heap allocation #21

merged 1 commit into from
Dec 30, 2024

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Dec 13, 2024

Since all protocol fields are known at compile time, replace the heap allocation with a static variable.

Test

  • Driver does not crash when loaded/unloaded in QEMU
  • pre-OS graphics output still works, I guess?

Since all protocol fields are known at compile time, replace the heap
allocation with a static variable.

Signed-off-by: Tim Crawford <[email protected]>
@crawfxrd crawfxrd marked this pull request as ready for review December 20, 2024 17:09
@crawfxrd crawfxrd requested review from jackpot51 and a team December 20, 2024 17:10
@crawfxrd crawfxrd merged commit b636a59 into master Dec 30, 2024
1 check passed
@crawfxrd crawfxrd deleted the static branch December 30, 2024 20:20
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.

3 participants