Special segment-registers. How to utilize registers FS and GS for addressing memory-operands while in IA-32e mode. Code/Data Descriptor-Format. 63. 32. Base[31..24]. G. D. L. A V L. Limit [19..16]. P. D P L. S. X. C / D. R / W. A. Base[23..16]. Base[15..0].
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
How to utilize registers FS and GS for addressing memory-operands while in IA-32e mode
G = Granularity: (0=byte-granularity, 1=page-granularity)
D = Default operand and address size: (0=16-bits, 1=32-bits)
L = Long (0=compatibility mode code/data, 1=64-bit code)
AVL = Available (this bit can be used by programmers for any purpose)
NOTE: These descriptors can only store 32-bits as a segment’s base-address
mov $sel_fs, %ax
mov %ax, %fs
mov base_lo32, %eax
mov base_hi32, %edx
mov $0xC0000100, %ecx