flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 22 Jul 2010, 08:41
If you just want to copy the BIOS and run it in a v8086 task then it won't work without a lot of extra support code. The BIOS would not be aware that it can't access the hardware. You would need to emulate hardware access and provide some sort of sharing mechanism or capture all I/O operations and convert them to API calls.
|
|||
![]() |
|
Tyler 22 Jul 2010, 08:45
So the BIOS can't access hardware from a v8086. Would it work if I ran it as a driver in r0?
Assuming I have total control over all privileges, would it be easier then? This was going to be a demo for an idea I had for a driver for my OS. |
|||
![]() |
|
revolution 22 Jul 2010, 09:15
Giving it full privilege would be a disaster. It would conflict with the existing drivers. Windows would not know what the BIOS was doing and the BIOS would not know what Windows was doing. Chaos.
When everybody is playing together in the ring0 playground they all have to play nicely and be respectful of others. Else you get fights and someone always ends up going home crying. |
|||
![]() |
|
Tyler 22 Jul 2010, 09:55
Quote: When everybody is playing together in the ring0 playground they all have to play nicely and be respectful of others. Else you get fights and someone always ends up going home crying. ![]() > Windows would not know what the BIOS was doing and the BIOS would not know what Windows was doing. I see. Does Windows know what's going on when you set VESA modes inside NTVDM? I did that one time, the screen went black and I had to ctrl+alt+del to bring up the task manager and kill my prog. |
|||
![]() |
|
revolution 22 Jul 2010, 09:57
Tyler wrote: Does Windows know what's going on when you set VESA modes inside NTVDM? |
|||
![]() |
|
Alphonso 22 Jul 2010, 14:42
There's seems to be something similar to what your asking in windows already, see Geoff Chappells site http://www.geoffchappell.com/studies/windows/km/hal/api/x86bios/index.htm It has an example to enumerate int 15h E820 that seems to work well under both 32 and 64. Depends what you want to do, if you want to play HW then I think it's better to take Rev's good advice.
Edit: Of course check out Vid's excellent article kindly linked by Fodder below. Might as well read the other articles as well, some good stuff to be had. ![]() Last edited by Alphonso on 27 Jul 2010, 10:41; edited 2 times in total |
|||
![]() |
|
f0dder 25 Jul 2010, 19:44
Our very own vid also discovered the x86bios stuff, here's a link - it's from 2007, Chapell's is apparently from 2009
![]() |
|||
![]() |
|
Alphonso 27 Jul 2010, 10:35
How about that. I did read Vid's EFI posts sometime ago, not sure how I missed the X86BIOS stuff. Or maybe at the time I did read it and forgot about it. Sorry Vid.
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.