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 committed Sep 29, 2020
1 parent 006c200 commit b93d782
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 @@ -87,9 +87,11 @@ SECTIONS
* certain core features */
PROVIDE(__metal_chicken_bit = {{ chicken_bit|default(0) }});

{% 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) }});
PROVIDE(__metal_eccscrub_bit = {{ eccscrub_bit }});
{% endif %}

/* ROM SECTION
*
Expand Down

0 comments on commit b93d782

Please sign in to comment.