Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Don't use global asm for __clang__
details: https://anonhg.NetBSD.org/src/rev/2bd30c20f126
branches: trunk
changeset: 778725:2bd30c20f126
user: matt <matt%NetBSD.org@localhost>
date: Tue Apr 10 16:57:50 2012 +0000
description:
Don't use global asm for __clang__
diffstat:
sys/arch/powerpc/include/cpu.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 041218b33c75 -r 2bd30c20f126 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h Tue Apr 10 16:16:03 2012 +0000
+++ b/sys/arch/powerpc/include/cpu.h Tue Apr 10 16:57:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.90 2012/03/16 07:41:54 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.91 2012/04/10 16:57:50 matt Exp $ */
/*
* Copyright (C) 1999 Wolfgang Solfrank.
@@ -213,8 +213,12 @@
return ci;
}
+#ifdef __clang__
+#define curlwp (curcpu()->ci_curlwp)
+#else
register struct lwp *powerpc_curlwp __asm("r13");
#define curlwp powerpc_curlwp
+#endif
#define curpcb (curcpu()->ci_curpcb)
#define curpm (curcpu()->ci_curpm)
Home |
Main Index |
Thread Index |
Old Index