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

patch.h (438B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _ARM_KERNEL_PATCH_H
      3#define _ARM_KERNEL_PATCH_H
      4
      5void patch_text(void *addr, unsigned int insn);
      6void __patch_text_real(void *addr, unsigned int insn, bool remap);
      7
      8static inline void __patch_text(void *addr, unsigned int insn)
      9{
     10	__patch_text_real(addr, insn, true);
     11}
     12
     13static inline void __patch_text_early(void *addr, unsigned int insn)
     14{
     15	__patch_text_real(addr, insn, false);
     16}
     17
     18#endif