Created
March 21, 2012 15:13
-
-
Save le4ker/2148224 to your computer and use it in GitHub Desktop.
Revisions
-
le4ker revised this gist
Mar 21, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ //REGISTER must be between "0" and "7" for the dr0-dr7 accordingly #define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%%dr" REGISTER "\n" :: "r" (VALUE)); #define GET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %%dr" REGISTER ",%0\n" : "=r" (VALUE)); -
le4ker revised this gist
Mar 21, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ //REGISTER must be between "0" and "7" for the dr0-dr7 accordingly #define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%dr" REGISTER "\n" :: "r" (VALUE)); #define GET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %dr" REGISTER ",%0\n" : "=r" (VALUE)); -
le4ker revised this gist
Mar 21, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ //REGISTER must be between "0" and "7" for the dr0-dr7 accordingly #define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%dr" REGISTER "\n" :: "r" VALUE); -
le4ker revised this gist
Mar 21, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ //REGISTER must be between 0 and 7 for the dr0-dr7 accordingly #define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%dr" REGISTER "\n" :: "r" VALUE); #define GET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %dr" REGISTER ",%0\n" : "=r" VALUE); -
le4ker revised this gist
Mar 21, 2012 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ //REGISTER must be between 0 and 7 for the dr0-dr7 accordingly #define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%dr" REGISTER "\n" :: "r" (VALUE)); #define GET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %dr" REGISTER ",%0\n" : "=r" (VALUE)); -
le4ker created this gist
Mar 21, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ #define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%%" REGISTER "\n" :: "r" (VALUE)); #define GET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %%" REGISTER ",%0\n" : "=r" (VALUE));