| 205 | #endif |
| 206 | |
| 207 | void 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 | } |
no test coverage detected