MCPcopy Create free account
hub / github.com/coreboot/coreboot / multiboot_module_redraw

Function multiboot_module_redraw

payloads/coreinfo/multiboot_module.c:22–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static int tables_good = 0;
21
22static int multiboot_module_redraw(WINDOW *win)
23{
24 int row = 2;
25 int i;
26
27 print_module_title(win, "Multiboot Tables");
28
29 if (tables_good == 0) {
30 mvwprintw(win, row++, 1, "No multiboot tables were found");
31 return 0;
32 }
33
34 row++;
35 mvwprintw(win, row++, 1, "-- Memory Map --");
36
37 for (i = 0; i < cb_info.mem_count; i++) {
38
39 if (cb_info.range[i].type == 1)
40 mvwprintw(win, row++, 3, " RAM: ");
41 else
42 mvwprintw(win, row++, 3, "Reserved: ");
43
44 wprintw(win, "%16.16llx - %16.16llx",
45 cb_info.range[i].start,
46 cb_info.range[i].start + cb_info.range[i].size - 1);
47 }
48
49 return 0;
50}
51
52static void parse_memory(struct multiboot_header *table)
53{

Callers

nothing calls this directly

Calls 3

print_module_titleFunction · 0.85
mvwprintwFunction · 0.50
wprintwFunction · 0.50

Tested by

no test coverage detected