Heapless memory region initialization

This commit is contained in:
Zhang Junyang
2024-12-29 21:53:00 +08:00
committed by Tate, Hongliang Tian
parent 0c8200dc7b
commit 51349a3da1
7 changed files with 236 additions and 129 deletions

View File

@ -38,7 +38,7 @@ pub(crate) fn init() {
let mut writer = {
let framebuffer = boot::framebuffer_arg();
let mut size = 0;
for region in memory_regions() {
for region in memory_regions().iter() {
if region.typ() == MemoryRegionType::Framebuffer {
size = region.len();
}