]>
Commit | Line | Data |
---|---|---|
9b8c947b JW |
1 | #include "console.h" |
2 | ||
3 | struct mb_info | |
56553b73 | 4 | { |
9b8c947b JW |
5 | unsigned long flags; |
6 | unsigned long mem_lower, mem_upper; | |
7 | unsigned long boot_dev; | |
8 | char *cmdline; | |
9 | unsigned long mod_cnt; | |
10 | struct mod_info *mods; | |
11 | }; | |
12 | ||
13 | struct mod_info | |
14 | { | |
15 | void *mod_start; | |
16 | void *mod_end; | |
17 | char *mod_string; | |
18 | void *reserved; | |
19 | }; | |
20 | ||
21 | void c_start(unsigned int magic, struct mb_info *wee) | |
22 | { | |
23 | unsigned short *grubptr = 0x7CFE; | |
24 | int i; | |
25 | ||
26 | puts("Magic is: "); | |
27 | puthex(magic); | |
28 | puts("\nMultiboot header is: "); | |
29 | puthex(wee); | |
30 | puts("\n"); | |
31 | show_cursor(); | |
32 | ||
33 | puts("Grubptr is: "); | |
34 | puthex(*grubptr); | |
35 | puts("\n"); | |
36 | ||
37 | for (i = 0; i < wee->mod_cnt; i++) | |
38 | { | |
39 | puts("Module:\n"); | |
40 | puts(" Start: "); puthex(wee->mods[i].mod_start); puts("\n"); | |
41 | puts(" Size: "); puthex(wee->mods[i].mod_end - wee->mods[i].mod_start); puts("\n"); | |
42 | puts(" Name: "); puts(wee->mods[i].mod_string); puts("\n"); | |
43 | } | |
56553b73 JW |
44 | while (1) |
45 | ; | |
46 | } |