|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80425 - in trunk: boost/context libs/context/doc libs/context/example libs/context/src/asm
From: oliver.kowalke_at_[hidden]
Date: 2012-09-06 16:18:24
Author: olli
Date: 2012-09-06 16:18:23 EDT (Thu, 06 Sep 2012)
New Revision: 80425
URL: http://svn.boost.org/trac/boost/changeset/80425
Log:
context: fix TABs, pagesize() added in docu
Text files modified:
trunk/boost/context/simple_stack_allocator.hpp | 2 +-
trunk/libs/context/doc/stack.qbk | 14 ++++++++++++++
trunk/libs/context/example/Jamfile.v2 | 12 ++++++------
trunk/libs/context/src/asm/fcontext_x86_64_ms_pe_masm.asm | 2 +-
4 files changed, 22 insertions(+), 8 deletions(-)
Modified: trunk/boost/context/simple_stack_allocator.hpp
==============================================================================
--- trunk/boost/context/simple_stack_allocator.hpp (original)
+++ trunk/boost/context/simple_stack_allocator.hpp 2012-09-06 16:18:23 EDT (Thu, 06 Sep 2012)
@@ -40,7 +40,7 @@
{
BOOST_ASSERT( minimum_stacksize() <= size);
BOOST_ASSERT( maximum_stacksize() >= size);
-
+
void * limit = std::calloc( size, sizeof( char) );
if ( ! limit) throw std::bad_alloc();
Modified: trunk/libs/context/doc/stack.qbk
==============================================================================
--- trunk/libs/context/doc/stack.qbk (original)
+++ trunk/libs/context/doc/stack.qbk 2012-09-06 16:18:23 EDT (Thu, 06 Sep 2012)
@@ -180,4 +180,18 @@
[endsect]
+
+[section:pagesize Frre function `pagesize()`]
+
+ std::size_t pagesize();
+
+[heading `std::size_t pagesize()`]
+[variablelist
+[[Returns:] [Returns the size of a page in bytes.]]
+]
+
+This function
+
+[endsect]
+
[endsect]
Modified: trunk/libs/context/example/Jamfile.v2
==============================================================================
--- trunk/libs/context/example/Jamfile.v2 (original)
+++ trunk/libs/context/example/Jamfile.v2 2012-09-06 16:18:23 EDT (Thu, 06 Sep 2012)
@@ -37,13 +37,13 @@
;
exe jump
- : jump.cpp
- ;
+ : jump.cpp
+ ;
exe exit
- : exit.cpp
- ;
+ : exit.cpp
+ ;
exe transfer
- : transfer.cpp
- ;
+ : transfer.cpp
+ ;
Modified: trunk/libs/context/src/asm/fcontext_x86_64_ms_pe_masm.asm
==============================================================================
--- trunk/libs/context/src/asm/fcontext_x86_64_ms_pe_masm.asm (original)
+++ trunk/libs/context/src/asm/fcontext_x86_64_ms_pe_masm.asm 2012-09-06 16:18:23 EDT (Thu, 06 Sep 2012)
@@ -177,7 +177,7 @@
mov rbp, rsp ; set RBP to RSP
sub rsp, 040h ; allocate stack space (contains shadow space for subroutines)
- mov [rbp-08h], r8 ; save 3. arg of make_fcontext, pointer to context function
+ mov [rbp-08h], r8 ; save 3. arg of make_fcontext, pointer to context function
mov [rbp-010h], rdx ; save 2. arg of make_fcontext, context stack size
mov [rbp-018h], rcx ; save 1. arg of make_fcontext, pointer to context stack (base)
lea rcx, [rcx-0180h] ; reserve space for fcontext_t at top of context stack
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk