mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-03-14 21:19:43 +01:00
Mark flash_devinfo_ptr() as RAM code to avoid flash call during flash_range_erase() (#2235)
This commit is contained in:
parent
0d909920f1
commit
b51fa1b747
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ void flash_get_unique_id(uint8_t *id_out) {
|
|||
#if !PICO_RP2040
|
||||
// This is a static symbol because the layout of FLASH_DEVINFO is liable to change from device to
|
||||
// device, so fields must have getters/setters.
|
||||
static io_rw_16 * flash_devinfo_ptr(void) {
|
||||
static io_rw_16 * __no_inline_not_in_flash_func(flash_devinfo_ptr)(void) {
|
||||
// Note the lookup returns a pointer to a 32-bit pointer literal in the ROM
|
||||
io_rw_16 **p = (io_rw_16 **) rom_data_lookup_inline(ROM_DATA_FLASH_DEVINFO16_PTR);
|
||||
assert(p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue