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 the `iretq` function to the `InterruptStackFrameValue` struct. #431

Closed NathanKolpa closed 1 year ago

NathanKolpa commented 1 year ago

I've added the iretq function that can be used to transition from a higher privilege level to a lower privilege level. This can be useful when implementing multitasking for example.