Home | History | Annotate | Download | only in dev

Lines Matching defs:cpu

1 /*	$NetBSD: cpu.c,v 1.3 2022/02/14 08:12:48 riastradh Exp $	*/
3 /* $OpenBSD: cpu.c,v 1.29 2009/02/08 18:33:28 miod Exp $ */
32 __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.3 2022/02/14 08:12:48 riastradh Exp $");
64 CFATTACH_DECL_NEW(cpu, sizeof(struct cpu_softc),
105 /* Print the CPU chip name, nickname, and rev. */
117 /* Print the CPU type, spec, level, category, and speed. */
198 aprint_error(": unable to allocate CPU stack!\n");
228 struct iomod *cpu;
244 * Release the specified CPU by triggering an EIR{0}.
253 * if (atomic_load_acquire(&cpu->io_eir) == 0) {
261 cpu = (struct iomod *)(ci->ci_hpa);
262 atomic_store_release(&cpu->io_eir, 0);
264 /* Wait for CPU to wake up... */
269 printf("failed to hatch cpu %i!\n", ci->ci_cpuid);