Tuesday, October 27, 2015

Shadow RAM




Yet another use of the 386’s ability to move pages of memory around is Shadow RAM. A great deal of the system software controlling all aspects of the machine’s hardware is stored in the ROM BIOS and any extension ROMs that are found on video cards and other adapters. ROM has the great advantage that it doesn’t have to be loaded from disk and it cannot be corrupted by being overwritten. Its great disadvantage is that it is very slow. Whenever ROM is accessed, the system automatically puts in multiple wait states to give it time to keep up with the processor. As ROM only accounts for as little as 64KBytes of the total memory you may not think that this slow down represents a big problem. It does, because the BIOS routines are among the most commonly used sections of software-applications and the operating system call on them to do a great many standard tasks. As a result the slowness of the ROM BIOS can have a large impact on the overall performance of the machine.


One solution to this problem is to convert slow ROMs into reasonably fast RAM. The method involves copying the contents of the ROMs temporarily into a free area of memory, mapping a section of extended memory into the area that the ROMs occupied, and then copying the ROM programs into the RAM. The exact details of how all this is achieved vary slightly but the effect at the end of the operation is to have replaced ROM by RAM containing the same software. This is called shadow RAM.

0 comments:

Post a Comment