Searched refs:CPU (Results 1 – 13 of 13) sorted by relevance
94 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 …]
31 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()
56 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()
57 int c = CPU(); in Machine_GDTInit()96 int c = CPU(); in Machine_TSSInit()
106 TSS[CPU()].rsp0 = oldthr->kstack + 4096; in Thread_SwitchArch()
97 kprintf("CPU %d\n", CPU()); in Trap_Dump()
83 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()
60 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()
88 curProc[CPU()] = apthr; in Thread_InitAP()316 TSS[CPU()].rsp0 = curProc[CPU()]->kstack + 4096; in ThreadKThreadEntry()386 Thread *thr = curProc[CPU()]; in Debug_ThreadInfo()
92 if (CPU() != 0) { in KTimer_Process()
293 Thread *thr = curProc[CPU()]; in Debug_ProcInfo()
7 #define CPU LAPIC_CPU macro
480 # than 0 to get more control over the balance between CPU load and processing2429 # larger than 0 to get control over the balance between CPU load and processing