Module Name: src
Committed By: macallan
Date: Tue Nov 15 12:43:14 UTC 2022
Modified Files:
src/sys/arch/powerpc/include: cpu.h
Log Message:
remove workaround for old clang - it's not needed anymore and caused problems
elsewhere
To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/arch/powerpc/include/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/arch/powerpc/include/cpu.h
diff -u src/sys/arch/powerpc/include/cpu.h:1.122 src/sys/arch/powerpc/include/cpu.h:1.123
--- src/sys/arch/powerpc/include/cpu.h:1.122 Mon May 30 14:48:08 2022
+++ src/sys/arch/powerpc/include/cpu.h Tue Nov 15 12:43:14 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.122 2022/05/30 14:48:08 rin Exp $ */
+/* $NetBSD: cpu.h,v 1.123 2022/11/15 12:43:14 macallan Exp $ */
/*
* Copyright (C) 1999 Wolfgang Solfrank.
@@ -240,12 +240,8 @@ curcpu(void)
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)