Rev 3984 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3984 | Rev 3985 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | { |
50 | { |
51 | uint32_t flags; |
51 | uint32_t flags; |
52 | mb_mod_t *mods; |
52 | mb_mod_t *mods; |
53 | uint32_t i; |
53 | uint32_t i; |
54 | 54 | ||
- | 55 | if (signature == MULTIBOOT_LOADER_MAGIC) { |
|
55 | flags = mi->flags; |
56 | flags = mi->flags; |
- | 57 | } else { |
|
- | 58 | /* No multiboot info available. */ |
|
- | 59 | flags = 0; |
|
- | 60 | } |
|
56 | 61 | ||
57 | /* Copy module information. */ |
62 | /* Copy module information. */ |
58 | 63 | ||
59 | if ((flags & MBINFO_FLAGS_MODS) != 0) { |
64 | if ((flags & MBINFO_FLAGS_MODS) != 0) { |
60 | init.cnt = mi->mods_count; |
65 | init.cnt = mi->mods_count; |