moved align_page into vm

db4
Phil Dawes 2009-08-18 19:35:12 +01:00
parent 7592a424e8
commit aa58b54c2e
3 changed files with 15 additions and 5 deletions

View File

@ -4,6 +4,18 @@ namespace factor
// I've had to copy inline implementations here to make dependencies work. Am hoping to move this code back into include files
// once the rest of the reentrant changes are done. -PD
// segments.hpp
inline cell factorvm::align_page(cell a)
{
return align(a,getpagesize());
}
inline static cell align_page(cell a)
{
return vm->align_page(a);
}
// write_barrier.hpp
inline card *factorvm::addr_to_card(cell a)

View File

@ -7,9 +7,4 @@ struct segment {
cell end;
};
inline static cell align_page(cell a)
{
return align(a,getpagesize());
}
}

View File

@ -3,6 +3,9 @@ namespace factor
struct factorvm {
// segments
inline cell align_page(cell a);
// contexts
cell ds_size, rs_size;
context *unused_contexts;