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

set_memory.h (788B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * Copyright (C) 1999-2002 Russell King
      4 */
      5
      6#ifndef _ASMARM_SET_MEMORY_H
      7#define _ASMARM_SET_MEMORY_H
      8
      9#ifdef CONFIG_MMU
     10int set_memory_ro(unsigned long addr, int numpages);
     11int set_memory_rw(unsigned long addr, int numpages);
     12int set_memory_x(unsigned long addr, int numpages);
     13int set_memory_nx(unsigned long addr, int numpages);
     14int set_memory_valid(unsigned long addr, int numpages, int enable);
     15#else
     16static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; }
     17static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; }
     18static inline int set_memory_x(unsigned long addr, int numpages) { return 0; }
     19static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; }
     20#endif
     21
     22#endif