blob: 039500b04d0bc21e83eb069183794550e11a30f1 (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __ABORT_H
#define __ABORT_H
#if defined CONFIG_ARCH_HAS_DATA_ABORT_MASK && !defined __PBL__
/*
* data_abort_mask - ignore data aborts
*
* If data aborts are ignored the data abort handler
* will just return.
*/
void data_abort_mask(void);
/*
* data_abort_unmask - Enable data aborts
*
* returns true if a data abort has happened between calling data_abort_mask()
* and data_abort_unmask()
*/
int data_abort_unmask(void);
#else
static inline void data_abort_mask(void)
{
}
static inline int data_abort_unmask(void)
{
return 0;
}
#endif
#endif /* __ABORT_H */
|