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

Remove ecc scrub memory labels from linker scripts. #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions templates/base.lds
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,10 @@ SECTIONS
* certain core features */
PROVIDE(__metal_chicken_bit = {{ chicken_bit|default(0) }});

{% if eccscrub_en %}
{% if eccscrub_bit != 0 %}
/* The memory_ecc_scrub bit is used by _entry code to enable/disable
* memories scrubbing to zero */
PROVIDE(__metal_eccscrub_bit = {{ eccscrub_bit|default(0) }});

/* The RAM memories map for ECC scrubbing */
{% for memory in ram_memories %}
{% if '0x10000' in memory["length_hex"]: %}
/* Default zero-scrub to at most 64KB, for limiting RTL simulation run time. */
/* User is recommended to enable the full size for manual RTL simulation run! */
{% endif %}
PROVIDE( metal_{{ memory.name }}_memory_start = {{ memory.base_hex }} );
PROVIDE( metal_{{ memory.name }}_memory_end = {{ memory.base_hex }} + {{ memory.length_hex }} );
{% endfor %}
{% else %}
PROVIDE(__metal_eccscrub_bit = 0);
PROVIDE(__metal_eccscrub_bit = {{ eccscrub_bit }});
{% endif %}

/* ROM SECTION
Expand Down
1 change: 0 additions & 1 deletion templates/default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
# Set layout options
#}
{% set ramrodata = False %}
{% set eccscrub_en = True %}
1 change: 0 additions & 1 deletion templates/freertos.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#}
{% set ramrodata = False %}
{% set privilege_en = True %}
{% set eccscrub_en = True %}

{% block privileged_function_section %}
.privileged_functions : ALIGN (32) {
Expand Down
1 change: 0 additions & 1 deletion templates/ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# Set layout options
#}
{% set ramrodata = True %}
{% set eccscrub_en = True %}

{% block force_itim %}
{% if text_in_itim %}
Expand Down
1 change: 0 additions & 1 deletion templates/scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
# Set layout options
#}
{% set ramrodata = False %}
{% set eccscrub_en = False %}