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

Reply
 
Thread Tools

2 question to linux experts
Old 06.12.2004, 14:43   #1
ppz kkz
 
Davit's Avatar
 
Join Date: 03 2003
Location: at home
Age: 41
Posts: 111
Rep Power: 5
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 ?

Old 07.12.2004, 11:25   #2
Guru Apprentice
 
Join Date: 02 2002
Location: /dev/null
Age: 48
Posts: 524
Rep Power: 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...

Old 09.12.2004, 07:13   #3
ppz kkz
 
Davit's Avatar
 
Join Date: 03 2003
Location: at home
Age: 41
Posts: 111
Rep Power: 5
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




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 09:17.
Top

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