Patent ID: 7565521

Claim:
A method to optimize memory resources after loading of an initialization code and a runtime code into an Option ROM space, comprising: determining if the memory resources are available to run a configuration code during an initialization process, wherein the memory resources include extended memory, conventional memory, and the Option ROM space wherein; and if the extended memory, the conventional memory, and the Option ROM space are not available; a) running a portion of the initialization code located in a swappable space of the Option ROM space, b) copying the configuration code into the swappable space over the portion of the initialization code, c) running the configuration code in the swappable space of the Option ROM space, repeating operations b) and c) if additional configuration code is to be run, wherein, if the extended memory, the conventional memory, and the Option ROM space are available, the swappable space of the Option ROM space is not used for running the configuration code.