VM: pagequeue data structure

. data structure that automatically keeps a set
	  of pages in reserve, to replace sparepages and
	  possibly re-used in the future for similar situations,
	  e.g. if in-filesystem-cache block eviction is
	  implemented and FS asks for a new block

Change-Id: I149d46c14b9c8e75df16cb94e08907f008c339a6
This commit is contained in:
Ben Gras
2012-12-29 00:16:33 +00:00
parent a212fd1ba5
commit 90d777f053
4 changed files with 235 additions and 97 deletions

View File

@@ -93,7 +93,7 @@ int main(void)
SANITYCHECK(SCL_TOP);
if(missing_spares > 0) {
pt_cycle(); /* pagetable code wants to be called */
alloc_cycle(); /* mem alloc code wants to be called */
}
if ((r=sef_receive_status(ANY, &msg, &rcv_sts)) != OK)
@@ -461,7 +461,7 @@ static void sef_cb_signal_handler(int signo)
* though.
*/
if(missing_spares > 0) {
pt_cycle(); /* pagetable code wants to be called */
alloc_cycle(); /* pagetable code wants to be called */
}
pt_clearmapcache();