version 1.48, 2007/12/03 15:34:18 |
version 1.49, 2007/12/14 00:58:37 |
Line 79 extern struct cpu_info cpu_info_store; |
|
Line 79 extern struct cpu_info cpu_info_store; |
|
#define cpu_proc_fork(p1, p2) /* nothing */ |
#define cpu_proc_fork(p1, p2) /* nothing */ |
|
|
/* |
/* |
|
* Interrupt stack location. |
|
*/ |
|
extern vaddr_t intstack, intfp, intsp; |
|
|
|
/* |
* Arguments to hardclock and gatherstats encapsulate the previous |
* Arguments to hardclock and gatherstats encapsulate the previous |
* machine state in an opaque clockframe. |
* machine state in an opaque clockframe. |
*/ |
*/ |
Line 88 struct clockframe { |
|
Line 93 struct clockframe { |
|
int ssp; /* stack pointer at time of interrupt */ |
int ssp; /* stack pointer at time of interrupt */ |
}; |
}; |
|
|
|
|
#define CLKF_USERMODE(cf) (!KERNELMODE((cf)->ssr)) |
#define CLKF_USERMODE(cf) (!KERNELMODE((cf)->ssr)) |
#define CLKF_PC(cf) ((cf)->spc) |
#define CLKF_PC(cf) ((cf)->spc) |
#define CLKF_INTR(cf) 0 /* XXX */ |
#define CLKF_INTR(cf) ((vaddr_t)(cf)->ssp <= intsp) |
|
|
/* |
/* |
* This is used during profiling to integrate system time. It can safely |
* This is used during profiling to integrate system time. It can safely |