Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 336 → Rev 353

/shark/trunk/oslib/kl/event.c
44,6 → 44,9
#include <ll/sys/ll/time.h>
#include <ll/sys/ll/event.h>
 
#include <tracer.h>
extern unsigned short int currCtx;
 
FILE(Event);
 
extern LL_ARCH ll_arch;
97,6 → 100,8
struct event *p;
struct event *p1, *t;
 
TRACER_LOGEVENT(FTrace_EVT_timer_post, 0, 0, 0);
 
if (!freeevents) {
message("NO FREE EVENTS !\n");
ll_abort(20);
142,6 → 147,8
{
struct event *p1, *t;
 
TRACER_LOGEVENT(FTrace_EVT_timer_delete, 0, 0, 0);
 
t = NULL;
/* walk through list, finding spot, adjusting ticks parameter */
for (p1 = firstevent; (p1) && (index != p1->index); p1 = t->next) {
170,6 → 177,8
WORD tmp;
#endif
 
TRACER_LOGEVENT(FTrace_EVT_timer_wakeup_start, 0, 0, 0);
 
#ifndef __TSC__
tmp = pit_read(frc);
ADDPITSPEC((WORD) (lastTime - tmp), &globalCounter);
209,6 → 218,9
evt_epil();
}
activeInt--;
 
TRACER_LOGEVENT(FTrace_EVT_timer_wakeup_end, 1, (int)currCtx, 0);
 
}
 
void event_init(struct ll_initparms *l)
/shark/trunk/oslib/kl/event1.c
41,6 → 41,9
#include <ll/sys/ll/time.h>
#include <ll/sys/ll/event.h>
 
#include <tracer.h>
extern unsigned short int currCtx;
 
FILE(EventOneShot);
 
extern int activeInt;
70,6 → 73,8
int done;
DWORD tnext;
 
TRACER_LOGEVENT(FTrace_EVT_timer_post, 0, 0, 0);
 
if (!freeevents) {
message("NO FREE EVENTS !\n");
ll_abort(20);
138,6 → 143,8
#endif
DWORD tnext;
 
TRACER_LOGEVENT(FTrace_EVT_timer_wakeup_start, 0, 0, 0);
 
#ifndef __TSC__
tmp = pit_read(frc);
217,6 → 224,8
#endif
}
 
TRACER_LOGEVENT(FTrace_EVT_timer_wakeup_end, 1, (int)currCtx, 0);
 
}
 
int oneshot_event_delete(int index)
226,6 → 235,8
DWORD tnext;
int firstdeleted = FALSE;
 
TRACER_LOGEVENT(FTrace_EVT_timer_delete, 0, 0, 0);
 
t = NULL;
/* walk through list, finding spot, adjusting ticks parameter */
 
/shark/trunk/oslib/kl/makefile
14,6 → 14,7
 
C_OPT += -D__VIRCSW__
ASM_OPT += -D__VIRCSW__
INCL += -I$(BASE)/../tracer/include
 
#C_OPT += -DPROFILE
#ASM_OPT += -DPROFILE
/shark/trunk/oslib/mk/gnu.mk
29,6 → 29,13
endif
endif
 
ifeq ($(findstring NEW,$(TRACER)) , NEW)
CFG_OPT += -D__NEW_TRACER__
endif
ifeq ($(findstring OLD,$(TRACER)) , OLD)
CFG_OPT += -D__OLD_TRACER__
endif
 
C_OPT = -Wall -O -fno-builtin -nostdinc $(CFG_OPT) -D__GNU__ -I$(INCL) -DMAIN=__kernel_init__
ASM_OPT = -x assembler-with-cpp $(CFG_OPT) -D__GNU__ -I$(INCL)
LINK_OPT = -T $(BASE)/mk/os.x -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH)
/shark/trunk/oslib/mk/linux.mk
9,7 → 9,7
LIB_DIR = $(BASE)/lib
 
ifeq ($(TSC),TRUE)
CFG_OPT = -D__TSC__
CFG_OPT += -D__TSC__
ifeq ($(APIC),TRUE)
CFG_OPT += -D__APIC__
endif
29,6 → 29,13
endif
endif
 
ifeq ($(findstring NEW,$(TRACER)) , NEW)
CFG_OPT += -D__NEW_TRACER__
endif
ifeq ($(findstring OLD,$(TRACER)) , OLD)
CFG_OPT += -D__OLD_TRACER__
endif
 
C_OPT = -Wall -O -fno-builtin -nostdinc -D__LINUX__ $(CFG_OPT) -DMAIN=__kernel_init__ -I$(INCL)
ASM_OPT = -x assembler-with-cpp -D__LINUX__ $(CFG_OPT) -I$(INCL)
LINK_OPT = -Bstatic -Ttext 0x220000 -s -nostartfiles -nostdlib -L$(LIB_PATH)
/shark/trunk/oslib/xlib/ctxsw.c
25,6 → 25,8
#include <ll/i386/hw-func.h>
#include <ll/i386/tss-ctx.h>
 
#include <tracer.h>
 
FILE(Context-Switch);
 
extern unsigned short int currCtx;
39,6 → 41,7
#ifdef __VIRCSW__
currCtx = c;
if (activeInt == 0) {
TRACER_LOGEVENT(FTrace_EVT_context_switch, 1, (int)c, 0);
context_load(c);
}
#else
63,5 → 66,6
void ll_context_load(CONTEXT c)
{
currCtx = c;
TRACER_LOGEVENT(FTrace_EVT_context_switch, 1, (int)c, 0);
context_load(c);
}
/shark/trunk/oslib/xlib/makefile
10,6 → 10,7
 
C_OPT += -D__VIRCSW__
ASM_OPT += -D__VIRCSW__
INCL += -I$(BASE)/../tracer/include
 
#C_OPT += -DPROFILE
#ASM_OPT += -DPROFILE