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 fix previous to make sense
details: https://anonhg.NetBSD.org/src/rev/a5902fa283b1
branches: trunk
changeset: 748169:a5902fa283b1
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Oct 15 01:50:08 2009 +0000
description:
fix previous to make sense
diffstat:
sys/rump/include/machine/cpu.h | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 7d0cffdcfd5a -r a5902fa283b1 sys/rump/include/machine/cpu.h
--- a/sys/rump/include/machine/cpu.h Thu Oct 15 01:35:23 2009 +0000
+++ b/sys/rump/include/machine/cpu.h Thu Oct 15 01:50:08 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.10 2009/10/15 01:35:23 pooka Exp $ */
+/* $NetBSD: cpu.h,v 1.11 2009/10/15 01:50:08 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -72,13 +72,12 @@
void __syncicache(void *, size_t);
#endif
-extern struct cpu_info *rump_cpu;
-#define curcpu() (rump_cpu)
-#define cpu_number() 0 /* XXX: good enuf? */
-
struct lwp *rump_get_curlwp(void); /* XXX */
#define curlwp rump_get_curlwp()
+#define curcpu() (curlwp->l_cpu)
+#define cpu_number() 0 /* XXX: not good enuf */
+
#endif /* !_LOCORE */
#endif /* _SYS_RUMP_CPU_H_ */
Home |
Main Index |
Thread Index |
Old Index