Skip to content

Commit

Permalink
Conditionally emit __metal_eccscrub_bit symbol.
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Knight <nick.knight@sifive.com>
  • Loading branch information
NandkumarJoshi and Nick Knight authored Sep 29, 2020
1 parent 006c200 commit 150dafd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/base.lds
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ SECTIONS

/* 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) }});
{% if eccscrub_bit != 0 %}
PROVIDE(__metal_eccscrub_bit = {{ eccscrub_bit }});
{% endif %}

/* ROM SECTION
*
Expand Down

0 comments on commit 150dafd

Please sign in to comment.