mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00

We remove mcause, scratch and hartid parameters from various functions for illegal instruction handling because we can always get current HART id and current scratch pointer using just one CSR access. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
20 lines
365 B
C
20 lines
365 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*/
|
|
|
|
#ifndef __SBI_ILLEGAl_INSN_H__
|
|
#define __SBI_ILLEGAl_INSN_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
|
|
struct sbi_trap_regs;
|
|
|
|
int sbi_illegal_insn_handler(ulong insn, struct sbi_trap_regs *regs);
|
|
|
|
#endif
|