Home
last modified time | relevance | path

Searched refs:CPU (Results 1 – 13 of 13) sorted by relevance

/sys/amd64/
Dmp.c94 kprintf("Booting on CPU %u\n", CPU()); in MP_Init()
96 cpus[CPU()].state = CPUSTATE_BOOTED; in MP_Init()
97 cpus[CPU()].frame = NULL; in MP_Init()
121 kprintf("AP %d booted!\n", CPU()); in MP_InitAP()
122 cpus[CPU()].state = CPUSTATE_BOOTED; in MP_InitAP()
130 cpus[CPU()].state = state; in MP_SetState()
153 if (frame->done[CPU()] == 1) in MP_CrossCallTrap()
156 frame->status[CPU()] = (frame->cb)(frame->arg); in MP_CrossCallTrap()
157 frame->done[CPU()] = 1; in MP_CrossCallTrap()
180 cpus[CPU()].frame = (CrossCallFrame *)&frame; in MP_CrossCall()
[all …]
Dcritical.c31 lockLevel[CPU()]++; in Critical_Enter()
37 lockLevel[CPU()]--; in Critical_Exit()
38 if (lockLevel[CPU()] == 0) in Critical_Exit()
47 return lockLevel[CPU()]; in Critical_Level()
Ddebug.c56 frames[CPU()] = tf; in Debug_HaltIPI()
69 frames[CPU()] = tf; in Debug_Breakpoint()
90 TrapFrame *tf = frames[CPU()]; in Debug_Registers()
132 TrapFrame *tf = frames[CPU()]; in Debug_Backtrace()
Dmachine.c57 int c = CPU(); in Machine_GDTInit()
96 int c = CPU(); in Machine_TSSInit()
Dthread.c106 TSS[CPU()].rsp0 = oldthr->kstack + 4096; in Thread_SwitchArch()
Dtrap.c97 kprintf("CPU %d\n", CPU()); in Trap_Dump()
/sys/kern/
Dspinlock.c83 if (lock->type == SPINLOCK_TYPE_RECURSIVE && lock->cpu == CPU()) { in Spinlock_Lock()
93 lock->cpu = CPU(); in Spinlock_Lock()
100 TAILQ_INSERT_TAIL(&lockStack[CPU()], lock, lockStack); in Spinlock_Lock()
111 ASSERT(lock->cpu == CPU()); in Spinlock_Unlock()
113 TAILQ_REMOVE(&lockStack[CPU()], lock, lockStack); in Spinlock_Unlock()
128 return (lock->cpu == CPU()) && (lock->lock == 1); in Spinlock_IsHeld()
154 int c = CPU(); in Debug_LockStack()
Dsched.c60 Thread *thr = curProc[CPU()]; in Sched_Current()
206 ASSERT(curProc[CPU()]->schedState == SCHED_STATE_RUNNING); in Sched_Scheduler()
213 prev = curProc[CPU()]; in Sched_Scheduler()
214 curProc[CPU()] = next; in Sched_Scheduler()
Dthread.c88 curProc[CPU()] = apthr; in Thread_InitAP()
316 TSS[CPU()].rsp0 = curProc[CPU()]->kstack + 4096; in ThreadKThreadEntry()
386 Thread *thr = curProc[CPU()]; in Debug_ThreadInfo()
Dktimer.c92 if (CPU() != 0) { in KTimer_Process()
Dprocess.c293 Thread *thr = curProc[CPU()]; in Debug_ProcInfo()
/sys/include/
Dmp.h7 #define CPU LAPIC_CPU macro
/docs/
DDoxyfile480 # than 0 to get more control over the balance between CPU load and processing
2429 # larger than 0 to get control over the balance between CPU load and processing