2 * arch/s390/lib/memset.S
3 * S390 fast memset routine
6 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
7 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
11 * R2 = address to memory area
12 * R3 = byte to fill memory with
13 * R4 = number of bytes to fill
19 LR 0,2 # save pointer to memory area
20 LR 1,3 # move pad byte to R1
22 SR 4,4 # no source for MVCLE, only a pad byte
24 MVCLE 2,4,0(1) # thats it, MVCLE is your friend
26 LR 2,0 # return pointer to mem.