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

datapage.S (287B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#include <linux/linkage.h>
      3#include <asm/asm-offsets.h>
      4
      5	.align 2
      6.L_vdso_data_ptr:
      7	.long	_start - . - VDSO_DATA_SIZE
      8
      9ENTRY(__get_datapage)
     10	.fnstart
     11	adr	r0, .L_vdso_data_ptr
     12	ldr	r1, [r0]
     13	add	r0, r0, r1
     14	bx	lr
     15	.fnend
     16ENDPROC(__get_datapage)