Userspace programs need their own version of alloc_error_handler to avoid using kernel functions to print the error. This was discovered here: #304 (comment) Add special alloc_error_handler for userspace 2e6deac vinc mentioned this pull request Sep 28, 2024 Add geodate program #304 Merged...
error: `#[alloc_error_handler]` function required, but not found ``` ###The`#[alloc_error_handler]`Attribute As we learned when discussing the`GlobalAlloc`trait, the`alloc`function can signal an allocation error by returning a null pointer. The question is: how should the Rust runtime re...
When we now try to compile it, the first error should be gone. Let's fix the remaining second error: ``` error: `#[alloc_error_handler]` function required, but not found ``` ### The `#[alloc_error_handler]` Attribute As we learned when discussing the `GlobalAlloc` trait, the `...