libcopp
2.2.0
include
libcopp
fcontext
detail
fcontext_arm_mac.hpp
Go to the documentation of this file.
1
// Copyright 2023 owent
2
3
#pragma once
4
5
#include <libcopp/utils/config/libcopp_build_features.h>
6
7
// clang-format off
8
#include <
libcopp/utils/config/stl_include_prefix.h
>
// NOLINT(build/include_order)
9
// clang-format on
10
#include <stdint.h>
11
#include <cstddef>
12
// clang-format off
13
#include <
libcopp/utils/config/stl_include_suffix.h
>
// NOLINT(build/include_order)
14
// clang-format on
15
16
#include "
libcopp/fcontext/detail/config.hpp
"
17
#include "
libcopp/utils/features.h
"
18
19
#ifdef COPP_HAS_ABI_HEADERS
20
# include COPP_ABI_PREFIX
21
#endif
22
23
LIBCOPP_COPP_NAMESPACE_BEGIN
24
namespace
fcontext
{
25
26
extern
"C"
{
27
28
#define COPP_BOOST_CONTEXT_CALLDECL
29
30
struct
stack_t {
31
void
*
sp
;
32
std::size_t
size
;
33
34
stack_t
() :
sp
(0),
size
(0) {}
35
};
36
37
struct
fp_t {
38
uint32_t
fc_freg
[16];
39
40
fp_t
() :
fc_freg
() {}
41
};
42
43
struct
fcontext_t
{
44
uint32_t
fc_greg
[11];
45
stack_t
fc_stack
;
46
fp_t
fc_fp
;
47
void
*
fc_unwind_sjlj
;
48
49
fcontext_t
() :
fc_greg
(),
fc_stack
(),
fc_fp
(),
fc_unwind_sjlj
(0) {}
50
};
51
}
52
}
// namespace fcontext
53
LIBCOPP_COPP_NAMESPACE_END
54
55
#ifdef COPP_HAS_ABI_HEADERS
56
# include COPP_ABI_SUFFIX
57
#endif
config.hpp
features.h
fcontext
Definition:
fcontext_arm.hpp:23
fcontext::fcontext_t
void * fcontext_t
Definition:
fcontext.hpp:27
stl_include_prefix.h
stl_include_suffix.h
fcontext::fcontext_t::fc_stack
stack_t fc_stack
Definition:
fcontext_arm.hpp:44
fcontext::fcontext_t::fcontext_t
fcontext_t()
Definition:
fcontext_arm_mac.hpp:49
fcontext::fcontext_t::fc_greg
uint32_t fc_greg[11]
Definition:
fcontext_arm.hpp:43
fcontext::fcontext_t::fc_fp
fp_t fc_fp
Definition:
fcontext_arm.hpp:45
fcontext::fcontext_t::fc_unwind_sjlj
void * fc_unwind_sjlj
Definition:
fcontext_arm_mac.hpp:47
fcontext::fp_t::fp_t
fp_t()
Definition:
fcontext_arm_mac.hpp:40
fcontext::fp_t::fc_freg
uint32_t fc_freg[16]
Definition:
fcontext_arm.hpp:37
fcontext::stack_t::size
std::size_t size
Definition:
fcontext_arm.hpp:31
fcontext::stack_t::sp
void * sp
Definition:
fcontext_arm.hpp:30
fcontext::stack_t::stack_t
stack_t()
Definition:
fcontext_arm_mac.hpp:34
Generated by
1.9.1