Page MenuHomeFreeBSD

D61305.1794592718.diff
No OneTemporary

Authored By
Unknown
Size
825 B
Referenced Files
None
Subscribers
None

D61305.1794592718.diff

diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -246,16 +246,6 @@
mtmsr(msr);
}
-static __inline struct pcpu *
-get_pcpu(void)
-{
- struct pcpu *ret;
-
- __asm __volatile("mfsprg %0, 0" : "=r"(ret));
-
- return (ret);
-}
-
/* "NOP" operations to signify priorities to the kernel. */
static __inline void
nop_prio_vlow(void)
diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h
--- a/sys/powerpc/include/pcpu.h
+++ b/sys/powerpc/include/pcpu.h
@@ -155,6 +155,16 @@
#ifdef _KERNEL
+static __inline struct pcpu *
+get_pcpu(void)
+{
+ struct pcpu *ret;
+
+ __asm __volatile("mfsprg %0, 0" : "=r"(ret));
+
+ return (ret);
+}
+
#define pcpup (get_pcpu())
static __inline __pure2 struct thread *

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 13, 5:58 PM (9 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41656488
Default Alt Text
D61305.1794592718.diff (825 B)

Event Timeline