-
Notifications
You must be signed in to change notification settings - Fork 8.2k
arch: rename 'SRAM' memory regions to 'RAM' where appropriate #49438
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
arch: rename 'SRAM' memory regions to 'RAM' where appropriate #49438
Conversation
55fafc7 to
fbb28f3
Compare
carlocaione
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fbb28f3 to
8c8367d
Compare
00e0ee5 to
07c7609
Compare
I know, it was just an extra piece of info for you 😉 |
tejlmand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
It's useful for RAMABLE_REGION to have a uniform name when CODE_DATA_RELOCATION is supported, because otherwise the build system needs to be aware of how the region name differs between architectures. Since architectures tend to prefer one of 'SRAM' or 'RAM' for that region, prefer to use 'RAM' as the more general term. Signed-off-by: Peter Marheine <[email protected]>
As with 32-bit ARM, it is useful to make the RAMABLE_REGION name uniform across architectures so the build system does not need to be aware of the differences when CODE_DATA_RELOCATION is supported. Generalize the name to just 'RAM' for uniformity. Signed-off-by: Peter Marheine <[email protected]>
It's useful for the default RAM region to have a uniform name across architectures so higher-level build processes do not need to have their own awareness of the names. Since NIOS2 uniformly uses 'SRAM', change it to 'RAM' to match most other architectures. Signed-off-by: Peter Marheine <[email protected]>
This was copied from the ARM version of the test's linker script, which in turn seems to have been copied from another linker script at some point. Remove the incorrect comment. Signed-off-by: Peter Marheine <[email protected]>
07c7609 to
856e402
Compare
856e402
|
Should this be considered a bugfix? (would queue for v3.3.otherwise since we are in feature freeze) |
|
I wouldn't call this a bugfix, since it doesn't affect normal usage. It's even a sort of breaking change, since users referring to |
The name of the default RAM region for the linker varies somewhat between architectures, generally either being
RAMorSRAM. Since it's useful at a higher level to have predictable memory region names (especially for theCODE_DATA_RELOCATIONfeature), this renamesSRAMregions toRAMfor architectures where that makes sense.RAMis chosen as the unified name becauseSRAMmay not be technically correct for some systems. Some SoCs and architectures have more complex memory layouts so they remain unchanged: they do not currently supportCODE_DATA_RELOCATIONwhich provides the motivation.This is a follow-up from #49262 to clean up some of the build configuration.