Skip to content

Commit

Permalink
Merge pull request #258 from sifive/scrub-fix
Browse files Browse the repository at this point in the history
Keep scrub code in init section
  • Loading branch information
bsousi5 authored May 4, 2020
2 parents 2d7509d + 36ff755 commit 8331f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scrub.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Scrub memory with zero
*/

/* Keep it in metal.init section with _enter */
.section .text.metal.init.scrub
/* Disable linker relaxation */
.option push
.option norelax
Expand Down

0 comments on commit 8331f14

Please sign in to comment.