Project

General

Profile

Bug #1329 ยป llvm.diff

alexh, 04/07/2009 10:02 AM

View differences:

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
    (1-1/1)