Page 1 of 1

TSS GDT Entry

Posted: Sun Jul 21, 2013 8:58 pm
by gabemaiberger
Hello, what would a tss gdt descriptor look like in nasm syntax? Also, how would I declare an instance of a tss structure:

Code: Select all

struc TSS
    .prevTss    resd 1
    .esp0       resd 1
    .ss0        resd 1
    .esp1       resd 1
    .ss1        resd 1
    .esp2       resd 1
    .ss2        resd 1
    .cr3        resd 1
    .eip        resd 1
    .eflags     resd 1
    .eax        resd 1
    .ecx        resd 1
    .edx        resd 1
    .ebx        resd 1
    .esp        resd 1
    .ebp        resd 1
    .esi        resd 1
    .edi        resd 1
    .es         resd 1
    .cs         resd 1
    .ss         resd 1
    .ds         resd 1
    .fs         resd 1
    .gs         resd 1
    .ldt        resd 1
    .trap       resw 1
    .iomap      resw 1
endstruc
in nasm?