Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/arch/powerpc/include Pull up following revision(s) (r...



details:   https://anonhg.NetBSD.org/src/rev/61cb4cb8d6bb
branches:  netbsd-6
changeset: 774090:61cb4cb8d6bb
user:      riz <riz%NetBSD.org@localhost>
date:      Wed May 09 22:47:03 2012 +0000

description:
Pull up following revision(s) (requested by matt in ticket #242):
        sys/arch/powerpc/include/cpu.h: revision 1.91
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 8cb9ab92b81b -r 61cb4cb8d6bb sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h    Wed May 09 22:42:31 2012 +0000
+++ b/sys/arch/powerpc/include/cpu.h    Wed May 09 22:47:03 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.89 2011/12/13 11:03:52 kiyohara Exp $        */
+/*     $NetBSD: cpu.h,v 1.89.2.1 2012/05/09 22:47:03 riz 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