calling bios interrupt
Hello.
Can someone help me solve my problem with on board watch dog timer that need to call bios interrupt? Here's how to update watch dog timer.
mov ax,6f02h
mov bl, 30 ;number of seconds
int 15h
How can i do this in kernel so that i can write wdt driver?
Thank you.
Jozef Kutej.
Quoted 10 lines · Jozef Kutej
Hello.
Can someone help me solve my problem with on board watch dog timer that need to call bios interrupt? Here's how to update watch dog timer.
mov ax,6f02h
mov bl, 30 ;number of seconds
int 15hHow can i do this in kernel so that i can write wdt driver?
You need to drive the hardware directly. Ask the vendor for the hardware info, or alternatively you might want to try using a library like lrmi in user space to call it and log the I/O instructions it tries to execute.
Quoted 10 lines · Alan Cox
Quoted 9 lines · Jozef Kutej
Hello.
Can someone help me solve my problem with on board watch dog timer that need to call bios interrupt? Here's how to update watch dog timer.
mov ax,6f02h
mov bl, 30 ;number of seconds
int 15h
Quoted 7 lines
Quoted 1 line
How can i do this in kernel so that i can write wdt driver?
You need to drive the hardware directly. Ask the vendor for the hardware info, or alternatively you might want to try using a library like lrmi in user space to call it and log the I/O instructions it tries to execute.
Also, if the machine has a floppy, boot DOS. Write the above snippit of code using DOS debug. Step through it. Watch what register(s) get written...
A>debug
- a100
- mov ax,6f02
- mov bl, ff
- int 15
- int 3
rip 100
- t ; trace the steps.
Once the timer gets written, the machine will reboot when it times-out. Therefore use a large timeout value as above 0xff.
Cheers,
Dick Johnson
Penguin : Linux version 2.6.13.4 on an i686 machine (5589.66 BogoMips). Warning : 98.36% of all statistics are fiction.
_
To unsubscribe
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
Quoted 5 lines · Jozef Kutej
Hello.
Can someone help me solve my problem with on board watch dog timer that need to call bios interrupt? Here's how to update watch dog timer.
Quoted 7 lines
mov ax,6f02h
mov bl, 30 ;number of seconds
int 15hHow can i do this in kernel so that i can write wdt driver?
Thank you.
CMIIW, is it not that for using BIOS interrupt one has to do the same
by entering in real mode or else real mode interrupt handler, would be
replaced with an appropriate exception handler by Linux.
check this : http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=8997;start=0#msg77808
like when i try to use int 10h in one of my kernel modules and try to insert it with insmod i get Floating Point Exception.
And one has to use vm86() system call and save the register context as given in below url to achieve the results.
http://x86.ddj.com/articles/pmbasics/tspec_a1_doc.htm
Quoted 3 lines
Jozef Kutej.
-