You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#222
The following methods can be made `const` on stable:
- `GlobalDescriptorTable::from_raw_slice`
- `MappedFrame::{start_address, size}`
- `Page<Size4KiB>::p1_index`
The remaining functions still need `const_fn` because:
- Some GDT methods use `&mut self`
- The IDT uses function pointers as a type argument
- The PageSize marker trait is used all over
Comments were updated where appropriate.
Signed-off-by: Joe Richey <[email protected]>
Fixes#222
The following methods can be made `const` on stable:
- `GlobalDescriptorTable::from_raw_slice`
- `MappedFrame::{start_address, size}`
- `Page<Size4KiB>::p1_index`
The remaining functions still need `const_fn` because:
- Some GDT methods use `&mut self`
- The IDT uses function pointers as a type argument
- The PageSize marker trait is used all over
Comments were updated where appropriate.
Signed-off-by: Joe Richey <[email protected]>
Some const_fn functionality was stabilized, so we might be able to remove the nightly gate on some of our const fns.
The text was updated successfully, but these errors were encountered: