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

traps.h (666B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __ASM_TRAPS_H
      3#define __ASM_TRAPS_H
      4
      5#define PARISC_ITLB_TRAP	6 /* defined by architecture. Do not change. */
      6
      7#if !defined(__ASSEMBLY__)
      8struct pt_regs;
      9
     10/* traps.c */
     11void parisc_terminate(char *msg, struct pt_regs *regs,
     12		int code, unsigned long offset) __noreturn __cold;
     13
     14void die_if_kernel(char *str, struct pt_regs *regs, long err);
     15
     16/* mm/fault.c */
     17unsigned long parisc_acctyp(unsigned long code, unsigned int inst);
     18const char *trap_name(unsigned long code);
     19void do_page_fault(struct pt_regs *regs, unsigned long code,
     20		unsigned long address);
     21int handle_nadtlb_fault(struct pt_regs *regs);
     22#endif
     23
     24#endif