X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Flowlevel.asm;h=30979decebd40b0bad32b909f184c31d4bc5f1ad;hb=6fa12b728fed57e76c4a4df5c87d989915c7d6c2;hp=1758b8f470459f73016e2d27dfd087a7d61d140e;hpb=645c766b13d15fd70cd360e577eac1f62e07149f;p=palacios.git diff --git a/palacios/src/geekos/lowlevel.asm b/palacios/src/geekos/lowlevel.asm index 1758b8f..30979de 100644 --- a/palacios/src/geekos/lowlevel.asm +++ b/palacios/src/geekos/lowlevel.asm @@ -2,7 +2,7 @@ ; Low level interrupt/thread handling code for GeekOS. ; Copyright (c) 2001,2003,2004 David H. Hovemeyer ; Copyright (c) 2003, Jeffrey K. Hollingsworth -; $Revision: 1.6 $ +; $Revision: 1.8 $ ; This is free software. You are permitted to use, ; redistribute, and modify it as specified in the file "COPYING". @@ -126,6 +126,7 @@ IMPORT Make_Runnable ; Function to activate a new user context (if needed). IMPORT Switch_To_User_Context +; Debug functions IMPORT SerialPrintHex IMPORT SerialPutChar @@ -424,6 +425,17 @@ Handle_Interrupt: mov esi, [esp+REG_SKIP] ; get interrupt number mov ebx, [eax+esi*4] ; get address of handler function +; push esi +; call SerialPrintHex +; pop esi + +; push eax +; mov eax, 0xa +; push eax +; call SerialPutChar +; pop eax +; pop eax + ; Call the handler. ; The argument passed is a pointer to an Interrupt_State struct, ; which describes the stack layout for all interrupts. @@ -503,6 +515,21 @@ Handle_Interrupt: ; Restore registers Restore_Registers + +; pusha + +; mov eax, 0xaa +; push eax +; call SerialPrintHex +; pop eax + +; mov eax, 0xa +; push eax +; call SerialPutChar +; pop eax + +; popa + ; Return from the interrupt. iret