TSS GDT Entry

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gabemaiberger
Member
Member
Posts: 40
Joined: Tue Nov 13, 2012 2:54 pm

TSS GDT Entry

Post 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?

Code: Select all

var myCat="marshmallow"
Post Reply