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

rseq-skip.h (1558B)


      1/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
      2/*
      3 * rseq-skip.h
      4 *
      5 * (C) Copyright 2017-2018 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      6 */
      7
      8static inline __attribute__((always_inline))
      9int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu)
     10{
     11	return -1;
     12}
     13
     14static inline __attribute__((always_inline))
     15int rseq_cmpnev_storeoffp_load(intptr_t *v, intptr_t expectnot,
     16			       long voffp, intptr_t *load, int cpu)
     17{
     18	return -1;
     19}
     20
     21static inline __attribute__((always_inline))
     22int rseq_addv(intptr_t *v, intptr_t count, int cpu)
     23{
     24	return -1;
     25}
     26
     27static inline __attribute__((always_inline))
     28int rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect,
     29				 intptr_t *v2, intptr_t newv2,
     30				 intptr_t newv, int cpu)
     31{
     32	return -1;
     33}
     34
     35static inline __attribute__((always_inline))
     36int rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect,
     37					 intptr_t *v2, intptr_t newv2,
     38					 intptr_t newv, int cpu)
     39{
     40	return -1;
     41}
     42
     43static inline __attribute__((always_inline))
     44int rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect,
     45			      intptr_t *v2, intptr_t expect2,
     46			      intptr_t newv, int cpu)
     47{
     48	return -1;
     49}
     50
     51static inline __attribute__((always_inline))
     52int rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect,
     53				 void *dst, void *src, size_t len,
     54				 intptr_t newv, int cpu)
     55{
     56	return -1;
     57}
     58
     59static inline __attribute__((always_inline))
     60int rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect,
     61					 void *dst, void *src, size_t len,
     62					 intptr_t newv, int cpu)
     63{
     64	return -1;
     65}