Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2009 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/91146 to your computer and use it in GitHub Desktop.
Save anonymous/91146 to your computer and use it in GitHub Desktop.
--- 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