-
Notifications
You must be signed in to change notification settings - Fork 225
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
Require float-save-restore in esp-wifi #2322
Conversation
@@ -22,7 +22,7 @@ pub fn allocate_main_task() -> *mut Context { | |||
} | |||
|
|||
let ptr = malloc(size_of::<Context>() as u32) as *mut Context; | |||
core::ptr::write_bytes(ptr, 0, 1); | |||
core::ptr::write(ptr, Context::new()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This really should be Box::new
but I'm not ready to go down that rabbit hole yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we would do construct-in-place
This makes Tasks are created on Maybe the only sane and safe way to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
For real this time...