memory areas
memory areas
what area are reserved by thr vpu and devices. I need to know what areas of memory I can use. I know the first 1K or so of memory is reserved for the IVT. I am fairly sure the video card uses some address space too. what else, or is there a standard way of knowing?
Re:memory areas
In general:
- The bottom 4KB are reserved for the interrupt vector table and the BIOS Data Area
- An area just below 640KB is reserved for an Extended BDA on some machines
- A0000-FFFFF is full of ROMs and memory-mapped devices; don't touch that unless you're e.g. accessing video memory
- PCI devices will put their memory areas higher up; you can ask PCI where these are. Note that these areas should be well away from physical memory (usually at the top of the 4GB physical address space)
Re:memory areas
Tim,
You said you can "ask" the PCI devices where their memory areas are......how?
Paul
You said you can "ask" the PCI devices where their memory areas are......how?
Paul
Re:memory areas
It's not trivial: you need to either call the PCI BIOS functions or access the hardware directly. OpenBLT, NewOS and Mobius all contain more-or-less the same PCI code, so download the source to one of these and copy it from there.