mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
Heapless memory region initialization
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
0c8200dc7b
commit
51349a3da1
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user