#include <kern/proc.h>
#include <kern/irq.h>
+#include <kern/monitor.h>
+
#include <drv/timer.h>
#include <cfg/test.h>
}
}
-static cpustack_t proc_test1_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)];
-static cpustack_t proc_test2_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)];
+static cpu_stack_t proc_test1_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)];
+static cpu_stack_t proc_test2_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)];
/**
{
kputs("> main\n");
timer_delay(93);
- proc_yield();
+ monitor_report();
}
return 0;
}
-#ifdef _TEST
int proc_testSetup(void)
{
return 0;
}
-#include <drv/kdebug.c>
-#include <drv/timer.c>
-#include <kern/idle.c>
-#include <kern/monitor.c>
-#include <kern/signal.c>
-#if CONFIG_KERN_PREEMPT
- #include <kern/preempt.c>
- #include <kern/irq.c>
-#else
- #include <kern/coop.c>
- // FIXME: we need to link with the switch asm code too!
-#endif
-#include <kern/proc.c>
-#include <mware/formatwr.c>
-#include <mware/hex.c>
-#include <mware/event.c>
-#include <os/hptime.c>
-
TEST_MAIN(proc);
-
-#endif // _TEST