Lines Matching +full:address +full:- +full:length
4 * SPDX-License-Identifier: Apache-2.0
48 * Without MMU, all memory are identity-mapped already in z_multiboot_init()
69 if ((info->flags & MULTIBOOT_INFO_FLAGS_MMAP) && in z_multiboot_init()
71 uintptr_t address; in z_multiboot_init() local
78 address = info->mmap_addr; in z_multiboot_init()
82 k_mem_map_phys_bare(&address_va, info->mmap_addr, info->mmap_length, in z_multiboot_init()
85 address = POINTER_TO_UINT(address_va); in z_multiboot_init()
88 address_end = address + info->mmap_length; in z_multiboot_init()
90 while ((address < address_end) && in z_multiboot_init()
92 mmap = UINT_TO_POINTER(address); in z_multiboot_init()
94 x86_memmap[index].base = mmap->base; in z_multiboot_init()
95 x86_memmap[index].length = mmap->length; in z_multiboot_init()
97 switch (mmap->type) { in z_multiboot_init()
116 address += mmap->size + sizeof(mmap->size); in z_multiboot_init()
125 if ((info->flags & MULTIBOOT_INFO_FLAGS_MEM) && in z_multiboot_init()
128 x86_memmap[0].length = info->mem_lower * 1024ULL; in z_multiboot_init()
133 x86_memmap[1].length = info->mem_upper * 1024ULL; in z_multiboot_init()