cargo-cult CPU_INFOITERATOR and _FOREACH to make kern_prf.c build again.

These should probably be abstracted out to sys/cpu.h at some point, since
they don't really change from arch to arch.
This commit is contained in:
dogcow 2008-02-19 07:04:41 +00:00
parent 591ca18c53
commit 3faae34034
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.49 2008/01/06 03:11:42 matt Exp $ */
/* $NetBSD: cpu.h,v 1.50 2008/02/19 07:04:42 dogcow Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@ -231,6 +231,10 @@ extern struct cpu_info cpu_info_store;
#define cpu_number() 0
#endif
#define CPU_INFO_ITERATOR int
#define CPU_INFO_FOREACH(cii, ci) \
cii = 0, ci = curcpu(); ci != NULL; ci = NULL
#ifdef __PROG32
void cpu_proc_fork(struct proc *, struct proc *);
#else

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.89 2007/10/17 19:55:14 garbled Exp $ */
/* $NetBSD: cpu.h,v 1.90 2008/02/19 07:04:41 dogcow Exp $ */
/*
* Copyright (c) 1982, 1990 The Regents of the University of California.
@ -128,6 +128,10 @@ extern struct cpu_info cpu_info_store;
#define curcpu() (&cpu_info_store)
#define CPU_INFO_ITERATOR int
#define CPU_INFO_FOREACH(cii, ci) \
cii = 0, ci = curcpu(); ci != NULL; ci = NULL
/*
* definitions of cpu-dependent requirements
* referenced in generic code