gdt::get_main_iopb does not prevent creation of multiple mut ref. #98
Labels
project-kernel
Related to the kernel
safety
Something is unsound, could be unsafe
todo 🗒️
Created by the todo bot
type-bug
Something isn't working
There's currently no guarantee that we don't create multiple &mut pointer to the IOPB region, which would cause undefined behavior. In practice, it should only be used by `i386::process_switch`, and as such, there is never actually two main_iopb active at the same time. Still, it'd be nicer to have safe functions to access the IOPB.
https://github.com/roblabla42/KFS/blob/adee47274ba5c0dc0ef112ce8933becd63d3da77/kernel/src/i386/gdt.rs#L189-L199
This issue was generated by todo based on a
TODO
comment in adee472 when #90 was merged. cc @roblabla.The text was updated successfully, but these errors were encountered: