摘要 |
Certain embodiments of a method and system for secure code patching may comprise modifying execution of boot code in an on-chip ROM during booting of the chip. Patch code resident in memory internal to the chip may be used to modify execution of the boot code. The address bus may be monitored for boot code addresses that match break addresses stored within the chip. If a match occurs, a start address that corresponds to the matched break address may be used to jump to a portion of the patch code. Accordingly, there may be a break in execution of the boot code, and a portion of the patch code may be executed. An instruction at the end of the portion of the patch code that is executed may be used to return to the boot code.
|