BIOS Interrupts -> Sleep funktion ???

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
Storm.Xapek.de
Posts: 3
Joined: Tue Mar 07, 2006 12:00 am

BIOS Interrupts -> Sleep funktion ???

Post by Storm.Xapek.de »

Is there a bios interrupt witch make a sleep funktion?
I think 1 sec.?
blackcatcoder
Member
Member
Posts: 132
Joined: Wed Nov 03, 2004 12:00 am
Location: Austria
Contact:

Re: BIOS Interrupts -> Sleep funktion ???

Post by blackcatcoder »

for what do you need an sleep funktion ???
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Re: BIOS Interrupts -> Sleep funktion ???

Post by carbonBased »

I'd imagine for some form of driver timing.

In any event, a sleep function should really equate to a task switch (ie, don't spin in the current process, switch to others, so they can do something) and mark the current task as blocked based on a timeout.

Your scheduler will then mark the task as active once the timeout has elapsed.

--Jeff
Hery
Member
Member
Posts: 65
Joined: Sat Dec 04, 2004 12:00 am

Re: BIOS Interrupts -> Sleep funktion ???

Post by Hery »

yes, there is, you can use interrupt 15h function 86h (AH=86h), in registers CX and DX should be information how long you want to wait...
of course you can use irq0 (also in PMODE)
Post Reply