41 lines
1.0 KiB
C
41 lines
1.0 KiB
C
/*
|
|
* ---------- header ----------------------------------------------------------
|
|
*
|
|
* project kaneton
|
|
*
|
|
* license kaneton
|
|
*
|
|
* file /home/mycure/kane.../architecture/ia32/educational/handler.c
|
|
*
|
|
* created renaud voltz [thu feb 23 10:49:43 2006]
|
|
* updated julien quintard [mon apr 11 13:44:48 2011]
|
|
*/
|
|
|
|
/*
|
|
* ---------- includes --------------------------------------------------------
|
|
*/
|
|
|
|
#include <kaneton.h>
|
|
|
|
/*
|
|
* ---------- functions -------------------------------------------------------
|
|
*/
|
|
|
|
/* FIXME[complete if necessary] */
|
|
void handler(int num)
|
|
{
|
|
// asm volatile ("\t movl %%ebx,%0" : "=r"(param1));
|
|
//asm volatile ("\t movl %%ecx,%0" : "=r"(param2));
|
|
//asm volatile ("\t movl %%edx,%0" : "=r"(param3));
|
|
//asm volatile ("\t movl %%eax,%0" : "=r"(syscall));
|
|
|
|
module_call(console, message,
|
|
'+', "youhou, interruption %d\n", num);
|
|
}
|
|
|
|
void handler_err(int err, int num)
|
|
{
|
|
module_call(console, message,
|
|
'!', "youhou, interruption d'erreur %d\n", num);
|
|
}
|