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