Posts

Using Rust main from a custom entry point (Part 2)

How to use Rust main function with a custom entry point with a custom function signature

Published on
7 min, 1228 words

Hello everyone. I will continue where I left off in post with the Rust main in this post. Since we now have an allocator, the Thread::new statement at library/std/src/rt.rs works. So we need to fix the line where we set the main thread with guard information. This will be a short post since it turned out easier than I initially thought.

Read More

Using Rust main from a custom entry point

How to use Rust main function with a custom entry point with a custom function signature

Published on
8 min, 1490 words

Hello everyone. In this post, we will deep dive into the crux of the main() function and look behind the scenes. By the end, we will have some understanding of Rust runtime. Primarily, I will describe my current implementation of efi_main to hook into Rust runtime.

Read More