Merge branch 'pci' into disk

This commit is contained in:
Adrien Bourmault 2020-02-20 10:08:40 +01:00
commit f30d313d70
No known key found for this signature in database
GPG Key ID: AFEE5788AEE3F4EC
1 changed files with 9 additions and 1 deletions

View File

@ -388,8 +388,16 @@ void KeBrkDumpRegisters(ISRFrame_t *regs)
{
IoDoBeepNoIdt();
bprintf(BStdOut, "\n\n"
size_t N = 3;
char *ptr = (char *)lmax((ulong)BStdDbg->buf,
(ulong)(BStdDbg->wp - BStdDbg->lastLF - (BStdDbg->lineLen * N)));
bprintf(BStdOut, "\n%C Debug messages last %d lines: \n %s\n",
VGA_COLOR_LIGHT_GREY,
N,
ptr);
bprintf(BStdOut,
"%C RIP: %#016lx RSP: %#016lx RBP: %#016lx\n\n"
" SS: %#016lx CS: %#016lx CR0: %#016lx\n"