Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
exception.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_ARCH_NIOS2_EXPCEPTION_H_
8#define ZEPHYR_INCLUDE_ARCH_NIOS2_EXPCEPTION_H_
9
10#ifndef _ASMLANGUAGE
11#include <zephyr/types.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17struct arch_esf {
18 uint32_t ra; /* return address r31 */
19 uint32_t r1; /* at */
20 uint32_t r2; /* return value */
21 uint32_t r3; /* return value */
22 uint32_t r4; /* register args */
23 uint32_t r5; /* register args */
24 uint32_t r6; /* register args */
25 uint32_t r7; /* register args */
26 uint32_t r8; /* Caller-saved general purpose */
27 uint32_t r9; /* Caller-saved general purpose */
28 uint32_t r10; /* Caller-saved general purpose */
29 uint32_t r11; /* Caller-saved general purpose */
30 uint32_t r12; /* Caller-saved general purpose */
31 uint32_t r13; /* Caller-saved general purpose */
32 uint32_t r14; /* Caller-saved general purpose */
33 uint32_t r15; /* Caller-saved general purpose */
35 uint32_t instr; /* Instruction being executed when exc occurred */
36};
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif /* _ASMLANGUAGE */
43
44#endif /* ZEPHYR_INCLUDE_ARCH_NIOS2_EXPCEPTION_H_ */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Exception Stack Frame.
Definition exception.h:60
uint32_t r4
Definition exception.h:22
uint32_t r13
Definition exception.h:31
uint32_t r11
Definition exception.h:29
uint32_t r8
Definition exception.h:26
uint32_t r10
Definition exception.h:28
uint32_t r6
Definition exception.h:24
uint32_t r2
Definition exception.h:20
uint32_t r3
Definition exception.h:21
uint32_t r1
Definition exception.h:19
uint32_t r15
Definition exception.h:33
uint32_t r7
Definition exception.h:25
uint32_t r9
Definition exception.h:27
uint32_t r12
Definition exception.h:30
uint32_t estatus
Definition exception.h:34
uint32_t instr
Definition exception.h:35
uint32_t r5
Definition exception.h:23
uint32_t r14
Definition exception.h:32
uint32_t ra
Definition exception.h:18