Commit 246a4b2b by malcolm

Removed reliance on serial_hexword

parent 64f3eeb7
Showing with 11 additions and 3 deletions
......@@ -57,8 +57,10 @@ void default_handler(struct reg_state reg, uint32_t interrupt, uint32_t error, s
serial_writestring("int caught ");
char f[20];
serial_val(interrupt);
serial_hexword(error);serial_writestring(" ");
serial_hexword(stack.eip);serial_writestring(" ");
serial_val(error);
serial_val(stack.eip);
//serial_hexword(error);serial_writestring(" ");
//serial_hexword(stack.eip);serial_writestring(" ");
//serial_val(stack.eip);
serial_val(stack.cd);
serial_val(stack.eflags);
......
......@@ -2,10 +2,16 @@
#include "pic.h"
#include "serial.h"
#include "idt.h"
#include "string.h"
#define serial_val(i) itoa(i,f);serial_writestring(f);serial_writestring(" ");
void kbd_irq()
{
serial_hexword(inb(0x60));
char f[20];
//serial_hexword(inb(0x60));
serial_val(inb(0x60));
serial_writestring("\n");
pic_command(0, PIC_OCW2_EOI);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment