Solved

programming BIOS Memory access

Posted on 1998-06-01
5
190 Views
Last Modified: 2010-04-27
How can I access physical memory above 1meg in an adapter BIOS that I am writing?  I need to access physical memory address like 0xE0000000.
0
Comment
Question by:eby
5 Comments
 
LVL 10

Expert Comment

by:rbr
ID: 1018660
Which OS and in which language?
0
 
LVL 32

Expert Comment

by:jhance
ID: 1018661
Under MSDOS, you need to get the processor into protected mode to be able to access memory above 1MEG.  The usual method is to use a DOS extender that supports DPMI or VCPI.  

Under Win95, you run into the protected memory problem.  You need to map ask Windows to map the physical address space to your process.  Another approach is to use a VxD virtual device driver which runs as a protected process and has free access to any memory location.

Under NT, you probably need to write a device driver to do wht you want.


0
 

Author Comment

by:eby
ID: 1018662
The question does not involve any OS.  The question was specifice to BIOS usage.  More clearly BIOS ROM.  More specific; PCI BIOS.
0
 
LVL 32

Accepted Solution

by:
jhance earned 140 total points
ID: 1018663
The BIOS runs in real-mode.  As such, you will have no way to access a ROM which has been located above 1MEG.  This is why the space between 640K and 1MEG is so precious.  It's the only place where you can locate a ROM and get it to run at power on.  If you have to have more space, a common practice is to place a "bootstrap" in the < 1MEG region for you adapter to catch the POST (Power on Self Test) search for an adapter BIOS and then have your BIOS extension switch to protected mode and map the ROM BIOS to a 32-bit address.  Since you're running outside the context of a 32-bit environment, you have to build everything yourself to support protected mode.
0
 

Expert Comment

by:zealsoft
ID: 5898036
Under Windows 9x/NT/2000, you can use MemAccess Library(http://www.zealsoftstudio.com/memaccess/) to access the momory and PCI BIOS.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is about my first experience with programming Arduino.
Or at least that’s the word according to a new blog from Tech Target on AWS’s new Managed Services (MS) offering. According to the blog, AWS is launching their AWS MS program to expedite the adoption of cloud by Fortune 1000 and Global 2000 companie…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question