Skip to content

Commit

Permalink
Merge pull request #256 from sifive/scrub_mem
Browse files Browse the repository at this point in the history
Disable linker relaxation for scrub.s
  • Loading branch information
bsousi5 authored Apr 30, 2020
2 parents 2e39b11 + 5d51e4c commit 65169b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scrub.S
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
/*
* Scrub memory with zero
*/

/* Disable linker relaxation */
.option push
.option norelax

.type _metal_memory_scrub, @function
_metal_memory_scrub:
/* Zero out memory */
Expand Down Expand Up @@ -115,3 +120,5 @@ skip_scrub:
/* Restore caller ra */
mv ra, s0
ret

.option pop

0 comments on commit 65169b7

Please sign in to comment.