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
let start_page = Page::from_start_address(mapping_addr(
230
235
config.mappings.framebuffer,
231
-
u64::from_usize(framebuffer_size),
236
+
u64::from_usize(framebuffer.info.byte_len),
232
237
Size4KiB::SIZE,
233
238
&mut used_entries,
234
239
))
@@ -248,6 +253,8 @@ where
248
253
}
249
254
let framebuffer_virt_addr = start_page.start_address();
250
255
Some(framebuffer_virt_addr)
256
+
}else{
257
+
None
251
258
};
252
259
253
260
let physical_memory_offset = ifletSome(mapping) = config.mappings.physical_memory{
@@ -440,13 +447,7 @@ where
440
447
letmut info = BootInfo::new(memory_regions.into());
441
448
info.framebuffer = mappings
442
449
.framebuffer
443
-
.map(|addr| {
444
-
FrameBuffer::new(
445
-
addr.as_u64(),
446
-
system_info.framebuffer_info.byte_len,
447
-
system_info.framebuffer_info,
448
-
)
449
-
})
450
+
.map(|addr| FrameBuffer::new(addr.as_u64(), system_info.framebuffer.expect("there shouldn't be a mapping for the framebuffer if there is not framebuffer").info))
0 commit comments