moved align_page into vm
parent
7592a424e8
commit
aa58b54c2e
|
@ -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
|
// 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
|
// 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
|
// write_barrier.hpp
|
||||||
|
|
||||||
inline card *factorvm::addr_to_card(cell a)
|
inline card *factorvm::addr_to_card(cell a)
|
||||||
|
|
|
@ -7,9 +7,4 @@ struct segment {
|
||||||
cell end;
|
cell end;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline static cell align_page(cell a)
|
|
||||||
{
|
|
||||||
return align(a,getpagesize());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue