Created
April 7, 2009 08:17
-
-
Save anonymous/91146 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/sys/cpu/amd64/include/cpufunc.h | |
+++ b/sys/cpu/amd64/include/cpufunc.h | |
@@ -633,7 +633,7 @@ load_es(u_int sel) | |
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; | |
@@ -647,8 +647,7 @@ load_fs(u_int sel) | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment