Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 431 → Rev 432

/shark/trunk/drivers/linuxc26/linuxcomp.c
0,0 → 1,28
 
#include <ll/i386/hw-instr.h>
 
#include <linuxcomp.h>
 
#include <linux/time.h>
#include <linux/sched.h>
 
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
 
signed long schedule_timeout(signed long timeout) {
 
SYS_FLAGS f;
struct timespec t;
 
f = ll_fsave();
sti();
 
jiffies_to_timespec(timeout, &t);
 
nanosleep(&t,NULL);
 
cli();
ll_frestore(f);
 
return 0;
 
}
/shark/trunk/drivers/linuxc26/makefile
0,0 → 1,21
# The LINUXCOMP 2.6 directory
 
ifndef BASE
BASE=../..
endif
 
include $(BASE)/config/config.mk
 
LIBRARY = comp26
 
OBJS_PATH = $(BASE)/drivers/linuxc26
 
OBJS = linuxcomp.o
 
C_OPT += -I../linuxc26/include
 
C_OPT += -D__KERNEL__
 
include $(BASE)/config/lib.mk