Make MemoryMapInfo::by_loader const

This commit is contained in:
Mark 2020-09-21 13:54:02 +03:00
parent e125ef89d6
commit a3642f482a

View File

@ -6,7 +6,7 @@ pub struct MemoryMapInfo {
impl MemoryMapInfo {
// TODO: MemoryMapInfo with kernel-owned storage
pub fn by_loader() -> MemoryMapInfo {
pub const fn by_loader() -> MemoryMapInfo {
MemoryMapInfo {
address: 0,
size: 0,