1 /* Written by Richard P. Curnow, SuperH (UK) Ltd.
3 Tight version of memset for the case of just clearing a page. It turns out
4 that having the alloco's spaced out slightly due to the increment/branch
5 pair causes them to contend less for access to the cache. Similarly,
6 keeping the stores apart from the allocos causes less contention. => Do two
7 separate loops. Do multiple stores per loop to amortise the
8 increment/branch cost a little.
11 r2 : source effective address (start of page)
13 Always clears 4096 bytes.
17 .section .text..SHmedia32,"ax"
21 .global sh64_page_clear