* Calling BIOS interrupt from kernel (and debugging / reverse engeneering)
@ 2007-08-22 7:49 Rafał Maj
2007-08-22 11:39 ` Matthew Garrett
0 siblings, 1 reply; 2+ messages in thread
From: Rafał Maj @ 2007-08-22 7:49 UTC (permalink / raw)
To: linux-kernel
Hello,
I know it is not good to call BIOS interrupt from Linux (kernel nor
userspace) and we should use I/O ports instead;
But, is it at all doable? To call a BIOS interrupt from Linux kernel?
If so then how to?
In example, say we have not documented device returning data in AL
after call to interrupt 0x15 with AX=0x1234 for example; And we want to
use this BIOS interrupt and then printk() returned value in AL.
AFAIK vm86() is one step to do it, but its hard to find good complete
example at least for me.
Btw, is it possible to reverse engineering such a BIOS call? Besides
using some hardware-debugger of bus etc.
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Calling BIOS interrupt from kernel (and debugging / reverse engeneering)
2007-08-22 7:49 Calling BIOS interrupt from kernel (and debugging / reverse engeneering) Rafał Maj
@ 2007-08-22 11:39 ` Matthew Garrett
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Garrett @ 2007-08-22 11:39 UTC (permalink / raw)
To: Rafał Maj; +Cc: linux-kernel
On Wed, Aug 22, 2007 at 09:49:15AM +0200, Rafał Maj wrote:
> AFAIK vm86() is one step to do it, but its hard to find good complete
> example at least for me.
Take a look at lrmi.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-22 11:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 7:49 Calling BIOS interrupt from kernel (and debugging / reverse engeneering) Rafał Maj
2007-08-22 11:39 ` Matthew Garrett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox