*
* \brief Process scheduler (public interface).
*
- * \version $Id: proc.h 1646 2008-08-17 13:49:48Z bernie $
+ * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * Still in development, disable nightly test for now
+ * notest: avr
+ * notest: arm
*/
#include "irq.h"
#include <kern/proc_p.h>
#include <kern/proc.h>
-#include <cfg/cfg_kern.h>
+#include "cfg/cfg_proc.h"
#include <unistd.h> // FIXME: move POSIX stuff to irq_posix.h
/* signal handler */
void irq_entry(int signum)
{
+#if CONFIG_KERN_PREEMPT
Process * const old_process = CurrentProcess;
+#endif
irq_handlers[signum]();
void irq_init(void)
{
struct sigaction act;
+
act.sa_handler = irq_entry;
sigemptyset(&act.sa_mask);
//sigaddset(&act.sa_mask, irq);