flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Timers?

Author
Thread Post new topic Reply to topic
Geek



Joined: 01 Jun 2005
Posts: 26
Geek
I have been looking for a way to implement multitasking in my OS.

My question is,

How do I setup a timed interupt to stop execution of the current task in order to task swich?

_________________
Death is not the opposite of life, rather, it is the absence of it.
Post 18 Sep 2005, 19:19
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
there is a timer interrupt generated by APIC
Post 18 Sep 2005, 21:12
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
The standard and "failsafe" method is to use the Programmable Interrupt Timer. As comrade mentioned, newer systems have the APIC stuff.
Post 19 Sep 2005, 08:43
View user's profile Send private message Visit poster's website Reply with quote
Geek



Joined: 01 Jun 2005
Posts: 26
Geek
Thanks very much.


But I am still in the dark.

Would someone please show me how to setup the Programmable interrupt timer. I dont no ware to start.

_________________
Death is not the opposite of life, rather, it is the absence of it.
Post 19 Sep 2005, 14:43
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 559
smiddy
Look up the 8253 or 8254 chip and read the datasheet. The data sheet will explain how to program it. Here's a link: http://www.osdever.net/documents/8253.pdf?the_id=42
Post 20 Sep 2005, 10:30
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.