[!] snippet GDT fixed

git-svn-id: https://pykd.svn.codeplex.com/svn@57229 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2010-11-08 07:06:00 +00:00
parent 1164af7442
commit bea30af123

View File

@ -24,7 +24,7 @@ def printGdtEntry( addr ):
base = ( ptrDWord( addr + 8 ) << 32 ) + base base = ( ptrDWord( addr + 8 ) << 32 ) + base
if attr & 0x800: if attr & 0x800:
limit = limit << 12 limit = ( limit << 12 ) | 0xFFF
dprint( "attr: %x ( " % attr + "".join( [ ( attr & ( 1 << ( 12 - i ) ) ) and "1" or "0" for i in range(0,12) ] ) + " )" ) dprint( "attr: %x ( " % attr + "".join( [ ( attr & ( 1 << ( 12 - i ) ) ) and "1" or "0" for i in range(0,12) ] ) + " )" )