# HG changeset patch # User John Tsiombikas # Date 1313548964 -10800 # Node ID f44bec97a0ecd5008c8f95d8bfb5f22461bc2978 # Parent 38f768da2f310634fd9f884762def4e6b32752f8 added errno.h in klibc diff -r 38f768da2f31 -r f44bec97a0ec src/klibc/errno.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/klibc/errno.h Wed Aug 17 05:42:44 2011 +0300 @@ -0,0 +1,6 @@ +#ifndef ERRNO_H_ +#define ERRNO_H_ + +#define EAGAIN 1 + +#endif /* ERRNO_H_ */ diff -r 38f768da2f31 -r f44bec97a0ec src/proc.c --- a/src/proc.c Wed Aug 17 05:39:39 2011 +0300 +++ b/src/proc.c Wed Aug 17 05:42:44 2011 +0300 @@ -166,7 +166,6 @@ return -EAGAIN; } p->ctx.stack_ptr = PAGE_TO_ADDR(p->kern_stack_pg) + KERN_STACK_SIZE; - /* we need to copy the current interrupt frame to the new kernel stack so * that the new process will return to the same point as the parent, just * after the fork syscall. diff -r 38f768da2f31 -r f44bec97a0ec src/timer.c --- a/src/timer.c Wed Aug 17 05:39:39 2011 +0300 +++ b/src/timer.c Wed Aug 17 05:42:44 2011 +0300 @@ -49,7 +49,7 @@ }; -static void intr_handler(); +static void timer_handler(); static struct timer_event *evlist; @@ -72,7 +72,7 @@ outb((reload_count >> 8) & 0xff, PORT_DATA0); /* set the timer interrupt handler */ - interrupt(IRQ_TO_INTR(0), intr_handler); + interrupt(IRQ_TO_INTR(0), timer_handler); } void sleep(unsigned long msec) @@ -133,7 +133,7 @@ * every 1/250th of a second, so it must be extremely fast. * For now, just increasing a tick counter will suffice. */ -static void intr_handler(int inum) +static void timer_handler(int inum) { int istate; struct process *p;