Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 06.12.2004, 14:43   #1
ppz kkz
 
Davit's Avatar
 
Join Date: 03 2003
Location: at home
Age: 33
Posts: 111
Downloads: 0
Uploads: 0
Reputation: 19 | 3
Default 2 question to linux experts

Hi all,
I have two questions to Linux experts,
1. Is it possible to call some BIOS function from Linux Kernel ?
I know that BIOS code is written only for real-mode execution, anyway, do u know some trick to call them ?
Reply With Quote
Old 07.12.2004, 11:25   #2
Guru Apprentice
 
Join Date: 02 2002
Location: /dev/null
Age: 41
Posts: 524
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

I myself am not a Linux Developer, but will presume that Linux Kernel will not let you call any interrupts (BIOS functions as you call them) directly, but will provide with an API for most (if not all) of the cases. But then again, if you're writing low-level device driver you have to call BIOS interrupts (again, this is my asusmption, I'm not a Linux developer). So it all depends on what exaclty you're trying to do.

That's one question. What was the second one?

Ektich
__________________
\/\/h47'5 1n 4 n4m3? 7h47 wh1(h w3 (4|| 4 r053,
8y 4ny 07h3r n4m3 w0u|d 5m3|| 45 5w337...
Reply With Quote
Old 09.12.2004, 07:13   #3
ppz kkz
 
Davit's Avatar
 
Join Date: 03 2003
Location: at home
Age: 33
Posts: 111
Downloads: 0
Uploads: 0
Reputation: 19 | 3
Default

Of Course you can't call BIOS interrupts from Kernel, because the Kernel works already in Protected Mode and disables these kind of interrupts ...

I think the only way is to switch to real mode (with saving processor state), to call the BIOS function, and again swtich to PM (with restoring proc state) ...
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 18:48.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.