Increasing the readability

This commit is contained in:
Stefan Lankes 2011-02-16 22:35:46 +01:00
parent 156bf8fa1b
commit 5fe9d5b3e9

View file

@ -364,7 +364,7 @@ int arch_paging_init(void)
/*
* Map reserved memory regions into the kernel space
*/
if (mb_info && (mb_info->flags & (1 << 6))) {
if (mb_info && (mb_info->flags & MULTIBOOT_INFO_MEM_MAP)) {
multiboot_memory_map_t* mmap = (multiboot_memory_map_t*) mb_info->mmap_addr;
multiboot_memory_map_t* mmap_end = (void*) ((size_t) mb_info->mmap_addr + mb_info->mmap_length);
@ -383,7 +383,7 @@ int arch_paging_init(void)
* Modules like the init ram disk are already loaded.
* Therefore, we map these moduels into the kernel space.
*/
if (mb_info && (mb_info->flags & (1 << 3))) {
if (mb_info && (mb_info->flags & MULTIBOOT_INFO_MODS)) {
multiboot_module_t* mmodule = (multiboot_module_t*) mb_info->mods_addr;
for(i=0; i<mb_info->mods_count; i++, mmodule++) {