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

setup.h (566B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
      4 */
      5
      6#ifndef _LOONGARCH_SETUP_H
      7#define _LOONGARCH_SETUP_H
      8
      9#include <linux/types.h>
     10#include <uapi/asm/setup.h>
     11
     12#define VECSIZE 0x200
     13
     14extern unsigned long eentry;
     15extern unsigned long tlbrentry;
     16extern void cpu_cache_init(void);
     17extern void per_cpu_trap_init(int cpu);
     18extern void set_handler(unsigned long offset, void *addr, unsigned long len);
     19extern void set_merr_handler(unsigned long offset, void *addr, unsigned long len);
     20
     21#endif /* __SETUP_H */