Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1254 → Rev 1255

/demos/trunk/loader/shark/func.h
1,6 → 1,7
#ifndef FUNC_H
#define FUNC_H
#ifndef __FUNC_H__
#define __FUNC_H__
 
#include "kernel/kern.h"
#include "shark.h"
 
#define get_current_exec_task() exec_shadow
15,7 → 16,6
#define generic_task_endcycle() task_endcycle()
#define generic_end_simulation() sys_end()
#define printf cprintf
#endif
 
#endif
 
/demos/trunk/loader/shark/shark.c
1,4 → 1,5
#include "func.h"
#include "common/calibrate.h"
 
extern int cal_cycles;
extern struct timespec zero_time;
13,7 → 14,7
long long i;
struct timespec start,end,diff;
 
if (cal_cycles != 0) return;
if (cal_cycles != 0) return 0;
 
kern_cli();
kern_gettime(&start);
/demos/trunk/loader/shark/shark.h
1,8 → 1,8
#ifndef SHARK_H
#define SHARK_H
#ifndef __SHARK_H__
#define __SHARK_H__
 
#include "kernel/kern.h"
#include "common/nload.h"
#include "common/lconst.h"
 
int calibrate_cycle();
void start_simulation();
12,6 → 12,6
void loader_task_activate(struct loader_task *l);
int get_server_from_contract(int contract);
 
int fsfinit();
void fsfinit();
 
#endif