-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Change the link script to optimum the RAM layout #401
base: master
Are you sure you want to change the base?
Conversation
sgbihu
commented
Jan 16, 2017
- Revert the DCCM change
- Update the link script
@@ -40,8 +40,8 @@ OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc", "elf32-littlearc") | |||
MEMORY | |||
{ | |||
FLASH (rx) : ORIGIN = 0x40034000, LENGTH = 152K | |||
SRAM (wx) : ORIGIN = 0xa800e000, LENGTH = 24K |
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.
I thought "rwx" and "wx" were the same thing (i.e. "w" signifies both read and write). I'm not 100% sure though. Can somebody explain why this is needed?
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.
ping.... any answers to my question above?
This is a performance improvement that will go into the next release. |
__dccm_start = .; | ||
*(.kernelmempool) | ||
*(".kernelmempool.*") | ||
__dccm_end = ALIGN(4); |
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.
Note that this does not actually align the location counter-- it calculates the next aligned value based on the current location counter, although the counter itself remains unaligned. I think you should do something like this instead;
. = ALIGN(4);
__dccm_end = .;
cf1a6c2
to
3f4c4f7
Compare
1. Revert the DCCM change 2. Update the link script
|