Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
exception.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010-2014 Wind River Systems, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_EXPCEPTION_H_
8#define ZEPHYR_INCLUDE_ARCH_X86_IA32_EXPCEPTION_H_
9
10#ifndef _ASMLANGUAGE
11#include <zephyr/types.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
30struct arch_esf {
31#ifdef CONFIG_GDBSTUB
32 unsigned int ss;
33 unsigned int gs;
34 unsigned int fs;
35 unsigned int es;
36 unsigned int ds;
37#endif
38 unsigned int esp;
39 unsigned int ebp;
40 unsigned int ebx;
41 unsigned int esi;
42 unsigned int edi;
43 unsigned int edx;
44 unsigned int eax;
45 unsigned int ecx;
46 unsigned int errorCode;
47 unsigned int eip;
48 unsigned int cs;
49 unsigned int eflags;
50};
51
52extern unsigned int z_x86_exception_vector;
53
54struct _x86_syscall_stack_frame {
55 uint32_t eip;
56 uint32_t cs;
57 uint32_t eflags;
58
59 /* These are only present if cs = USER_CODE_SEG */
60 uint32_t esp;
61 uint32_t ss;
62};
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* _ASMLANGUAGE */
69
70#endif /* ZEPHYR_INCLUDE_ARCH_X86_IA32_EXPCEPTION_H_ */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Exception Stack Frame.
Definition exception.h:57
unsigned int fs
Definition exception.h:34
unsigned int ss
Definition exception.h:32
unsigned int esi
Definition exception.h:41
unsigned int gs
Definition exception.h:33
unsigned int eax
Definition exception.h:44
unsigned int esp
Definition exception.h:38
unsigned int edi
Definition exception.h:42
unsigned int ebx
Definition exception.h:40
unsigned int errorCode
Definition exception.h:46
unsigned int ecx
Definition exception.h:45
unsigned int eip
Definition exception.h:47
unsigned int ebp
Definition exception.h:39
unsigned int es
Definition exception.h:35
unsigned int eflags
Definition exception.h:49
unsigned int edx
Definition exception.h:43
unsigned int cs
Definition exception.h:48
unsigned int ds
Definition exception.h:36