Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/include/machine update comments



details:   https://anonhg.NetBSD.org/src/rev/e2a78ddb7775
branches:  trunk
changeset: 327564:e2a78ddb7775
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Mar 10 23:02:07 2014 +0000

description:
update comments

diffstat:

 sys/rump/include/machine/cpu.h |  18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diffs (58 lines):

diff -r 615949a6d073 -r e2a78ddb7775 sys/rump/include/machine/cpu.h
--- a/sys/rump/include/machine/cpu.h    Mon Mar 10 22:48:29 2014 +0000
+++ b/sys/rump/include/machine/cpu.h    Mon Mar 10 23:02:07 2014 +0000
@@ -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 @@
        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 @@
 #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()



Home | Main Index | Thread Index | Old Index