cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

copy_tofrom_user_reference.S (258B)


      1#include <asm/ppc_asm.h>
      2
      3_GLOBAL(copy_tofrom_user_reference)
      4	cmpdi	r5,0
      5	beq	4f
      6
      7	mtctr	r5
      8
      91:	lbz	r6,0(r4)
     102:	stb	r6,0(r3)
     11	addi	r3,r3,1
     12	addi	r4,r4,1
     13	bdnz	1b
     14
     153:	mfctr	r3
     16	blr
     17
     184:	mr	r3,r5
     19	blr
     20
     21.section __ex_table,"a"
     22	.llong	1b,3b
     23	.llong	2b,3b
     24.text