rust-osdev / x86_64

Library to program x86_64 hardware.
https://docs.rs/x86_64
Apache License 2.0
797 stars 132 forks source link

Add `inline` attribute to segment functions #430

Closed tsoutsman closed 1 year ago

tsoutsman commented 1 year ago

Continuation of https://github.com/rust-osdev/x86_64/issues/125 I suppose.

kevinaboos commented 1 year ago

To add some context, we noticed this lack of inlining while switching some CPU-local storage code in Theseus OS from using inline assembly to using this crate's segment base register access functions.