News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

load TSS selector in GS -> GPF

Started by Ash, February 02, 2009, 12:55:32 PM

Previous topic - Next topic

Ash

Hi,

is it normal that I get a GPF when I load a TSS selector into a normal (ds, gs...) segment register?

I thought it would be handy to have the GS segment register in my OS always point to the current TSS and not waste another entry in the GDT for this purpose.

TIA,
Ash

japheth

Quote from: Ash on February 02, 2009, 12:55:32 PM
is it normal that I get a GPF when I load a TSS selector into a normal (ds, gs...) segment register?
Yes.

Ash


Tedd

The segment registers hold segment selectors, the TSS still requires a descriptor in the GDT.
You then set its selector in the task-register (with LTR) - which caches the address of the TSS using the descriptor.
No snowflake in an avalanche feels responsible.