Skip to content

Add rom_data_lookup_inline function #2116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

will-v-pi
Copy link
Contributor

Add rom_data_lookup_inline function instead of rom_data_lookup, similar to rom_func_lookup_inline. The code is moved from bootrom.c to bootrom.h, with the rom_data_lookup function changed to a simple call of rom_data_lookup_inline, similar to rom_func_lookup.

Also use this inline lookup in flash_devinfo_ptr to avoid touching a function in flash during flash programming.

Allows ROM data lookup from FLASH/RAM sensitive code
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
@kilograham kilograham merged commit 54784f8 into raspberrypi:develop Dec 2, 2024
4 checks passed
@will-v-pi will-v-pi deleted the rom-data-lookup-inline branch December 2, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants