Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177512241
D61305.1794592718.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
825 B
Referenced Files
None
Subscribers
None
D61305.1794592718.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61305: powerpc: move get_pcpu() to machine/pcpu.h
Attached
Detach File
Event Timeline