libcopp  2.2.0
fcontext_i386.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 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
8 # pragma once
9 #endif
10 
11 // clang-format off
12 #include <libcopp/utils/config/stl_include_prefix.h> // NOLINT(build/include_order)
13 // clang-format on
14 #include <stdint.h>
15 #include <cstddef>
16 // clang-format off
17 #include <libcopp/utils/config/stl_include_suffix.h> // NOLINT(build/include_order)
18 // clang-format on
19 
21 #include "libcopp/utils/features.h"
22 
23 #ifdef COPP_HAS_ABI_HEADERS
24 # include COPP_ABI_PREFIX
25 #endif
26 LIBCOPP_COPP_NAMESPACE_BEGIN
27 namespace fcontext {
28 
29 extern "C" {
30 
31 #define COPP_BOOST_CONTEXT_CALLDECL __attribute__((cdecl))
32 
33 struct stack_t {
34  void *sp;
35  std::size_t size;
36 
37  stack_t() : sp(0), size(0) {}
38 };
39 
40 struct fcontext_t {
41  uint32_t fc_greg[6];
42  stack_t fc_stack;
43  uint32_t fc_freg[2];
44 
46 };
47 }
48 } // namespace fcontext
49 LIBCOPP_COPP_NAMESPACE_END
50 
51 #ifdef COPP_HAS_ABI_HEADERS
52 # include COPP_ABI_SUFFIX
53 #endif
void * fcontext_t
Definition: fcontext.hpp:27
uint32_t fc_greg[11]
std::size_t size