blob: 2400ca83f32dabed63d6bfc109760b277af04dd2 (
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
37
38
39
|
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*/
#ifndef KERNEL_ABORT_H
#define KERNEL_ABORT_H
#define ABORT_TYPE_UNDEF 0
#define ABORT_TYPE_PREFETCH 1
#define ABORT_TYPE_DATA 2
#define ABORT_TYPE_TA_PANIC 3 /* Dump stack on TA panic (not an abort) */
#ifndef ASM
#include <compiler.h>
#include <types_ext.h>
struct abort_info {
uint32_t abort_type;
uint32_t fault_descr; /* only valid for data of prefetch abort */
vaddr_t va;
uint32_t pc;
struct thread_abort_regs *regs;
};
/* Print abort info to the console */
void abort_print(struct abort_info *ai);
/* Print abort info + stack dump to the console */
void abort_print_error(struct abort_info *ai);
void abort_handler(uint32_t abort_type, struct thread_abort_regs *regs);
bool abort_is_user_exception(struct abort_info *ai);
#endif /*ASM*/
#endif /*KERNEL_ABORT_H*/
|