summaryrefslogtreecommitdiffstats
path: root/arch/kvx/cpu/exception.S
blob: 0017e8ea12dcf19ae894bc1990c1f8d4806c50b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2019 Kalray Inc.
 */

#include <linux/linkage.h>

/**
 * We do not aim at handling exceptions but at least, we want the CPU to
 * stop when taking one.
 * Note that we can not expect to be able to issue a print since
 * it might be the cause of trap...
 */
#define exception_stub(__type) \
.section .exception.## __type, "ax", @progbits ;\
ENTRY(kvx_## __type ##_early_handler): ;\
	goto . ;\
	;; ;\
ENDPROC(kvx_ ## __type ## _early_handler)

exception_stub(debug)
exception_stub(trap)
exception_stub(interrupt)
exception_stub(syscall)