mycpu 111 defs.h struct cpu* mycpu(void); mycpu 56 main.c xchg(&(mycpu()->started), 1); // tell startothers() we're up mycpu 78 main.c if(c == mycpu()) // We've started already. mycpu 32 proc.c return mycpu()-cpus; mycpu 62 proc.c c = mycpu(); mycpu 326 proc.c struct cpu *c = mycpu(); mycpu 373 proc.c if(mycpu()->ncli != 1) mycpu 379 proc.c intena = mycpu()->intena; mycpu 380 proc.c swtch(&p->context, mycpu()->scheduler); mycpu 381 proc.c mycpu()->intena = intena; mycpu 41 spinlock.c lk->cpu = mycpu(); mycpu 94 spinlock.c r = lock->locked && lock->cpu == mycpu(); mycpu 111 spinlock.c if(mycpu()->ncli == 0) mycpu 112 spinlock.c mycpu()->intena = eflags & FL_IF; mycpu 113 spinlock.c mycpu()->ncli += 1; mycpu 121 spinlock.c if(--mycpu()->ncli < 0) mycpu 123 spinlock.c if(mycpu()->ncli == 0 && mycpu()->intena) mycpu 167 vm.c mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts, mycpu 168 vm.c sizeof(mycpu()->ts)-1, 0); mycpu 169 vm.c mycpu()->gdt[SEG_TSS].s = 0; mycpu 170 vm.c mycpu()->ts.ss0 = SEG_KDATA << 3; mycpu 171 vm.c mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE; mycpu 174 vm.c mycpu()->ts.iomb = (ushort) 0xFFFF;