Skip to content

Commit fc3d66e

Browse files
committed
Use rom_data_lookup_inline in flash_devinfo_ptr
Fixes bug introduced by raspberrypi#2082 where flash_devinfo_get_cs_size would use rom_data_lookup from flash during a __no_inline_not_in_flash_func
1 parent 57a4983 commit fc3d66e

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/hardware_flash

1 file changed

+1
-1
lines changed

src/rp2_common/hardware_flash/flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void flash_get_unique_id(uint8_t *id_out) {
290290
// device, so fields must have getters/setters.
291291
static io_rw_16 * flash_devinfo_ptr(void) {
292292
// Note the lookup returns a pointer to a 32-bit pointer literal in the ROM
293-
io_rw_16 **p = (io_rw_16 **) rom_data_lookup(ROM_DATA_FLASH_DEVINFO16_PTR);
293+
io_rw_16 **p = (io_rw_16 **) rom_data_lookup_inline(ROM_DATA_FLASH_DEVINFO16_PTR);
294294
assert(p);
295295
return *p;
296296
}

0 commit comments

Comments
 (0)