http://en.wikipedia.org/wiki/Global_Descriptor_Table

I see all this 32 bit code needs to be ported to 64 bit.