robert-w-gries / rxinu

Rust implementation of Xinu educational operating system
Apache License 2.0
34 stars 4 forks source link

Remove usage of static mut from gdt and idt #18

Closed robert-w-gries closed 6 years ago

robert-w-gries commented 6 years ago

Ideally, we can use lazy_static and Once to make GDT and IDT both static and non-mut.

The problem is the following compiler error:

We need to make it so that the IdtEntry struct does not cause data races