Page MenuHomeFreeBSD

D52607.id162728.diff
No OneTemporary

D52607.id162728.diff

diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -572,6 +572,15 @@
return (sel);
}
+static __inline u_short
+rcs(void)
+{
+ u_short sel;
+
+ __asm __volatile("movw %%cs,%0" : "=rm" (sel));
+ return (sel);
+}
+
static __inline void
load_ds(u_short sel)
{

File Metadata

Mime Type
text/plain
Expires
Sat, Sep 19, 8:58 PM (6 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39249757
Default Alt Text
D52607.id162728.diff (356 B)

Event Timeline