Re: calling bios interrupt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2 Feb 2006, Alan Cox wrote:

> On Iau, 2006-02-02 at 08:48 +0100, Jozef Kutej wrote:
>> 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?
>
> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux