4 * $DragonFly: src/lib/libcaps/i386/md_globaldata.h,v 1.2 2003/12/07 04:21:54 dillon Exp $
7 #ifndef _MD_GLOBALDATA_H_
8 #define _MD_GLOBALDATA_H_
10 extern int __mycpu__dummy;
18 __asm ("movl %%gs:0,%0" : "=r" (gd) : "m"(__mycpu__dummy));
24 _set_mycpu(int selector)
26 __asm __volatile("movl %0,%%gs" :: "a"(selector));
29 #define mycpu _get_mycpu()
31 void md_gdinit1(globaldata_t gd);
32 void md_gdinit2(globaldata_t gd);
33 void cpu_user_switch(void);
34 void cpu_rfork_start(void) __dead2;