From bea30af123085667bbc6efd63f263e79fabbcaa1 Mon Sep 17 00:00:00 2001
From: "SND\\kernelnet_cp"
 <SND\kernelnet_cp@9b283d60-5439-405e-af05-b73fd8c4d996>
Date: Mon, 8 Nov 2010 07:06:00 +0000
Subject: [PATCH] [!] snippet GDT fixed

git-svn-id: https://pykd.svn.codeplex.com/svn@57229 9b283d60-5439-405e-af05-b73fd8c4d996
---
 snippets/gdt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/gdt.py b/snippets/gdt.py
index 8226e39..ec74716 100644
--- a/snippets/gdt.py
+++ b/snippets/gdt.py
@@ -24,7 +24,7 @@ def printGdtEntry( addr ):
             base = ( ptrDWord( addr + 8 ) << 32 ) + base   
 
     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) ] ) + " )" )