Method and apparatus for patching code and data residing on a memory
Abstract
A method and apparatus for applying patches to a code or data residing on a non-volatile memory device is illustrated. A code residing at a first location in a non-volatile memory can be replaced by a codes residing at a second locations in a memory map. A patching device compares a first address of a first code to an address identified by a pre-fetch instruction. If the first address matches the address identified by the pre-fetch instruction, a pre-fetch abort is issued to facilitate replacing a bad code residing at the first address with a good code. The good code can be pointed to by a vector in a vector table where the address of the vector is dynamically loaded into a program counter.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 15.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of applying patches to a code residing on a read only memory (ROM) to substitute execution of a first code residing at a first address in the ROM with execution of a second code residing at a second address within a memory map, the method comprising: storing the first address of the first code in a first register; pre-fetching a first instruction; comparing an address of the first instruction with the first address of the first code; issuing a pre-fetch abort instruction if the address of the first instruction matches the address of the first code; and fetching the second address of t
- Claim 2Depends on #1
A method as described in claim 1 , wherein fetching the second address of the second code comprises: loading a program counter with a first vector that contains the second address of the second code; and reading the second address of the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗