This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
kaneton/kaneton/machine/architecture/ia32/educational/handler.c
Mercier Pierre-Olivier 757b9d7222 Working pre-handlers
2013-02-17 05:00:14 +01:00

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);
}