Handle patch for ROM.
More...
|
|
#define | PATCH_AON 0 |
| |
|
#define | MAX_PATCH_ENTRIES 32 |
| |
|
#define | QUOTE_ME(X) #X |
| |
|
#define | PATCH(address, offset, func) |
| |
|
#define | PATCH_DATA(address, offset, data) |
| |
|
#define | PATCH_TAG 0x50544348 |
| |
Handle patch for ROM.
◆ HAL_PATCH_install()
| int HAL_PATCH_install |
( |
void |
| ) |
|
Install patches LCPU/BCPU.
- Return values
-
| 32-bit | value, each bit represent on patch installed. |
◆ HAL_PATCH_install2()
| int HAL_PATCH_install2 |
( |
struct patch_entry_desc * |
patch_entries, |
|
|
uint32_t |
size, |
|
|
int |
cer |
|
) |
| |
Advanced API to install patches for LCPU/BCPU.
- Parameters
-
| patch_entries | Patch descriptor arrays |
| size | size of patch_entries in bytes. |
| cer | Previous patch enable register value, used in restore patch from standby. |
- Return values
-
| 32-bit | value, each bit represent on patch installed. |
◆ HAL_PATCH_save()
| int HAL_PATCH_save |
( |
struct patch_entry_desc * |
patch_entries, |
|
|
uint32_t |
size, |
|
|
uint32_t * |
cer |
|
) |
| |
Save patches.
- Parameters
-
| patch_entries | Patch descriptor arrays |
| size | size of patch_entries in bytes. |
| [out] | cer | Previous patch enable register value, used in restore patch from standby. |
- Return values
-