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

Function cbmem_dump_console

src/lib/cbmem_console.c:207–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205#endif
206
207void cbmem_dump_console(void)
208{
209 u32 cursor;
210 if (!current_console)
211 return;
212
213 console_paused = true;
214
215 if (current_console->cursor & OVERFLOW)
216 for (cursor = current_console->cursor & CURSOR_MASK;
217 cursor < current_console->size; cursor++)
218 if (!BIOS_LOG_IS_MARKER(current_console->body[cursor]))
219 do_putchar(current_console->body[cursor]);
220 for (cursor = 0; cursor < (current_console->cursor & CURSOR_MASK); cursor++)
221 if (!BIOS_LOG_IS_MARKER(current_console->body[cursor]))
222 do_putchar(current_console->body[cursor]);
223
224 console_paused = false;
225}

Callers 1

console_initFunction · 0.85

Calls 1

do_putcharFunction · 0.50

Tested by

no test coverage detected