libcopp 2.3.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
18
19#ifdef LIBCOPP_HAS_ABI_HEADERS
20# include LIBCOPP_ABI_PREFIX
21#endif
22
23LIBCOPP_COPP_NAMESPACE_BEGIN
24namespace fcontext {
25
26extern "C" {
27
28#define LIBCOPP_BOOST_CONTEXT_CALLDECL
29
30struct stack_t {
31 void *sp;
32 std::size_t size;
33
34 stack_t() : sp(0), size(0) {}
35};
36
37struct fp_t {
38 uint32_t fc_freg[16];
39
40 fp_t() : fc_freg() {}
41};
42
43struct fcontext_t {
44 uint32_t fc_greg[11];
45 stack_t fc_stack;
46 fp_t fc_fp;
48
50};
51}
52} // namespace fcontext
53LIBCOPP_COPP_NAMESPACE_END
54
55#ifdef LIBCOPP_HAS_ABI_HEADERS
56# include LIBCOPP_ABI_SUFFIX
57#endif
uint32_t fc_freg[16]