Bug #1329 ยป llvm.diff
| sys/cpu/amd64/include/cpufunc.h | ||
|---|---|---|
|
static __inline void
|
||
|
load_fs(u_int sel)
|
||
|
{
|
||
|
register u_int32_t fsbase __asm("ecx");
|
||
|
u_int32_t fsbase;
|
||
|
/* Preserve the fsbase value across the selector load */
|
||
|
fsbase = MSR_FSBASE;
|
||
| ... | ... | |
|
static __inline void
|
||
|
load_gs(u_int sel)
|
||
|
{
|
||
|
register u_int32_t gsbase __asm("ecx");
|
||
|
u_int32_t gsbase;
|
||
|
/*
|
||
|
* Preserve the gsbase value across the selector load.
|
||
|
* Note that we have to disable interrupts because the gsbase
|
||