Accessing BIOS memory range

Bruce M Simpson bms at spc.org
Thu May 12 23:52:28 GMT 2005


On Thu, May 12, 2005 at 09:58:10PM +0200, alexander wrote:
> I'm writing a little app in 32 bit x86 (386 minumum) assembly, where I need to access
> some memory in the BIOS range. The real address is 40h:6Ch (virtual = ((0x40<<4) | 0x6C)).

Just use /dev/mem. It will do what you want.

Look at src/tools/tools/pirtool for a simple example.

BMS


More information about the freebsd-hackers mailing list