General Protection Fault, Interrupts, printf();... Is there
Posted: Wed Aug 28, 2002 10:37 pm
Hello people, I am having a major problem with my OS. It seems like I cannot pass any arguments to printf(); from within an interrupt function. I can say printf("A key was pressed"); or putch(char); from my keyboard interrupt function, but as soon as printf is given an argument such as printf("stuff = %d", stuff); from within my keyboard interrupt function, I generate a General Protection Fault when printf(); returns. This is proving to be VERY annoying for me. Right after this, the timer fires and it prints "[t]" on the screen. Welcome to my nightmare... The screen is flooded with "Invalid Opcode". I am guessing that there is some kind of error with either the stack or printf(); or both
Is it possible that something could have royally messed up in my printf(); function? Or does ebp or esp have to be reset after a call to it? Please help, this is fairly important.
Is it possible that something could have royally messed up in my printf(); function? Or does ebp or esp have to be reset after a call to it? Please help, this is fairly important.