Skip to content
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

Add rom_data_lookup_inline function #2116

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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
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.

1 participant