3 ms·
Hell yeah! Appreciate the updates. My idea there was a runtime or overhead came from an early OS attempt in Rust where they couldnt get past real mode. Had to u
by nickpsecurity 11y ago
Hell yeah! Appreciate the updates. My idea there was a runtime or overhead came from an early OS attempt in Rust where they couldnt get past real mode. Had to use non-Rust code for that and it was using too much space IIRC. They've gotten past those obstacles now?
- steveklabnik 11y agoYou need about 100 lines of assembly to get to a Rust kmain in long mode. Rust has effectively no runtime these days. Same amount as C or C++, basically.
- nickpsecurity 11y agoThat's great to hear. Thanks for chiming in with the good info as always.
- steveklabnik 11y agoAny time. If you're interested in what exactly that code is, check out Phil's blog, linked upthread.
- nickpsecurity 11y agoI'm guessing you mean this: http://os.phil-opp.com/entering-longmode.html http://os.phil-opp.com/entering-longmode.html Interesting stuff and seems like a good description of the code. Bookmarking it in case I do more in this area.