summaryrefslogtreecommitdiff
path: root/boost/context/detail/fcontext_i386.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/context/detail/fcontext_i386.hpp')
-rw-r--r--boost/context/detail/fcontext_i386.hpp27
1 files changed, 9 insertions, 18 deletions
diff --git a/boost/context/detail/fcontext_i386.hpp b/boost/context/detail/fcontext_i386.hpp
index 573a22caf3..2e01323556 100644
--- a/boost/context/detail/fcontext_i386.hpp
+++ b/boost/context/detail/fcontext_i386.hpp
@@ -4,8 +4,8 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
-#ifndef BOOST_CTX_DETAIL_FCONTEXT_I386H
-#define BOOST_CTX_DETAIL_FCONTEXT_I386H
+#ifndef BOOST_CONTEXT_DETAIL_FCONTEXT_I386H
+#define BOOST_CONTEXT_DETAIL_FCONTEXT_I386H
#include <cstddef>
@@ -19,7 +19,7 @@
#endif
namespace boost {
-namespace ctx {
+namespace context {
extern "C" {
@@ -27,20 +27,11 @@ extern "C" {
struct stack_t
{
- void * base;
- void * limit;
+ void * sp;
+ std::size_t size;
stack_t() :
- base( 0), limit( 0)
- {}
-};
-
-struct fp_t
-{
- boost::uint32_t fc_freg[2];
-
- fp_t() :
- fc_freg()
+ sp( 0), size( 0)
{}
};
@@ -48,12 +39,12 @@ struct fcontext_t
{
boost::uint32_t fc_greg[6];
stack_t fc_stack;
- fp_t fc_fp;
+ boost::uint32_t fc_freg[2];
fcontext_t() :
fc_greg(),
fc_stack(),
- fc_fp()
+ fc_freg()
{}
};
@@ -65,4 +56,4 @@ struct fcontext_t
# include BOOST_ABI_SUFFIX
#endif
-#endif // BOOST_CTX_DETAIL_FCONTEXT_I386_H
+#endif // BOOST_CONTEXT_DETAIL_FCONTEXT_I386_H