TSS in fasm

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
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

TSS in fasm

Post by os.hacker64 »

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
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Post by DeletedAccount »

:D Fasm has a similar syntax as that of nasm ... You may have look at the
example provided by John Fine .. In tutorial section of www.osdever.net
:P
Last edited by DeletedAccount on Tue Feb 26, 2008 12:17 pm, edited 1 time in total.
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

I don't like macros much, I can't seem to figure that out. :oops: OMFG I FEEL LIKE A NOOB!
Kanu Operating System
Working on:Paging and Multitasking

BURN /\/\1(40$0|=7
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

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 65 times
Kanu Operating System
Working on:Paging and Multitasking

BURN /\/\1(40$0|=7
exkor
Member
Member
Posts: 111
Joined: Wed May 23, 2007 9:38 pm

Post by exkor »

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.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

If you can't work out how to use assembler macros then you have got big problems ahead... :roll:
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

macros create confusion for me.
especially in asm. I don't use them.
Kanu Operating System
Working on:Paging and Multitasking

BURN /\/\1(40$0|=7
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

TSS Descriptor without a STRUCT in fasm

Post by nekros »

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 :D ) 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
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

oops, I thought I made a new post :oops:
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Try this, its nasm but easy to convert
Attachments
PM7.ASM
(11.62 KiB) Downloaded 40 times
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

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