TSS in fasm
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
TSS in fasm
Is there an example of a TSS Descriptor in Fasm out there? I have no Idea how to set one up, I know the structure of it, but setting it up has become a problem.
Kanu Operating System
Working on:Paging and Multitasking
BURN /\/\1(40$0|=7
Working on:Paging and Multitasking
BURN /\/\1(40$0|=7
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am

example provided by John Fine .. In tutorial section of www.osdever.net

Last edited by DeletedAccount on Tue Feb 26, 2008 12:17 pm, edited 1 time in total.
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
This is what I have now, it triple faults when I test it on my computer(at least thats what I think is happening)and restarts. 

- Attachments
-
- Kanu.tar.gz
- (1.38 KiB) Downloaded 74 times
Kanu Operating System
Working on:Paging and Multitasking
BURN /\/\1(40$0|=7
Working on:Paging and Multitasking
BURN /\/\1(40$0|=7
Write handlers for CPu exceptions, especially #GP. Look at the IRET in the INtel 2A manual to understand better what it pops out. Then do tss thing with interrupts enabled & PIC masked.
Last edited by exkor on Tue Feb 26, 2008 1:43 pm, edited 1 time in total.
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
TSS Descriptor without a STRUCT in fasm
I try to setup the tss descriptor in fas in somewhat the same way that I set it up in C(that compiled but didn't work
) with shifts and such the only problem is that when I tried to set the descriptor I would get things like value out of range and crap. How else can I do this???

Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
oops, I thought I made a new post 

Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
you are awesome dex!
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc