exceptions.h (ead5d1f4d877e92c051e1a1ade623d0d30e71619) exceptions.h (05cdf457477d6603b207d91873f0a3d4c7f8c1cd)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Preliminary support for HW exception handing for Microblaze
4 *
5 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
6 * Copyright (C) 2008-2009 PetaLogix
7 * Copyright (C) 2005 John Williams <jwilliams@itee.uq.edu.au>
8 */
9
10#ifndef _ASM_MICROBLAZE_EXCEPTIONS_H
11#define _ASM_MICROBLAZE_EXCEPTIONS_H
12
13#ifdef __KERNEL__
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Preliminary support for HW exception handing for Microblaze
4 *
5 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
6 * Copyright (C) 2008-2009 PetaLogix
7 * Copyright (C) 2005 John Williams <jwilliams@itee.uq.edu.au>
8 */
9
10#ifndef _ASM_MICROBLAZE_EXCEPTIONS_H
11#define _ASM_MICROBLAZE_EXCEPTIONS_H
12
13#ifdef __KERNEL__
14
15#ifndef CONFIG_MMU
16#define EX_HANDLER_STACK_SIZ (4*19)
17#endif
18
19#ifndef __ASSEMBLY__
20
21/* Macros to enable and disable HW exceptions in the MSR */
22/* Define MSR enable bit for HW exceptions */
23#define HWEX_MSR_BIT (1 << 8)
24
25#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
26#define __enable_hw_exceptions() \

--- 48 unchanged lines hidden ---
14#ifndef __ASSEMBLY__
15
16/* Macros to enable and disable HW exceptions in the MSR */
17/* Define MSR enable bit for HW exceptions */
18#define HWEX_MSR_BIT (1 << 8)
19
20#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
21#define __enable_hw_exceptions() \

--- 48 unchanged lines hidden ---