Module Name: src Committed By: pooka Date: Mon Mar 10 23:02:07 UTC 2014
Modified Files: src/sys/rump/include/machine: cpu.h Log Message: update comments To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/rump/include/machine/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/include/machine/cpu.h diff -u src/sys/rump/include/machine/cpu.h:1.18 src/sys/rump/include/machine/cpu.h:1.19 --- src/sys/rump/include/machine/cpu.h:1.18 Wed Jan 22 23:38:21 2014 +++ src/sys/rump/include/machine/cpu.h Mon Mar 10 23:02:07 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.18 2014/01/22 23:38:21 christos Exp $ */ +/* $NetBSD: cpu.h,v 1.19 2014/03/10 23:02:07 pooka Exp $ */ /* * Copyright (c) 2008-2011 Antti Kantee. All Rights Reserved. @@ -25,6 +25,11 @@ * SUCH DAMAGE. */ +/* + * CPU defitions for a generic arch. Unfortunately there are some + * MD #ifdefs here. They are required because of MD inlines and macros. + */ + #ifndef _SYS_RUMP_CPU_H_ #define _SYS_RUMP_CPU_H_ @@ -44,20 +49,12 @@ struct cpu_info { uint64_t ci_pcc_freq; #endif -/* - * XXX: horrible workaround for vax lock.h. - * I eventually want to nuke rump include/machine, so don't waste - * energy fighting with this. - */ #ifdef __vax__ int ci_ipimsgs; #define IPI_SEND_CNCHAR 0 #define IPI_DDB 0 #endif /* __vax__ */ -/* - * More stinky hacks, this time for powerpc. Will go away eventually. - */ #ifdef __powerpc__ struct cache_info { int dcache_size; @@ -68,14 +65,13 @@ struct cpu_info { #endif /* __powerpc */ }; -/* more dirty rotten vax kludges */ #ifdef __vax__ static __inline void cpu_handle_ipi(void) {} #endif /* __vax__ */ #ifdef __powerpc__ void __syncicache(void *, size_t); -#endif +#endif /* __powerpc__ */ struct lwp *rumpuser_curlwp(void); #define curlwp rumpuser_curlwp()