Module Name: src
Committed By: pooka
Date: Thu Oct 15 01:50:08 UTC 2009
Modified Files:
src/sys/rump/include/machine: cpu.h
Log Message:
fix previous to make sense
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 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.10 src/sys/rump/include/machine/cpu.h:1.11
--- src/sys/rump/include/machine/cpu.h:1.10 Thu Oct 15 01:35:23 2009
+++ src/sys/rump/include/machine/cpu.h Thu Oct 15 01:50:08 2009
@@ -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_ */