Implement skeleton for swapping frames into disk

This commit is contained in:
Themis Demetriades
2024-11-26 18:59:46 +00:00
parent ea2725f606
commit 1e6b90da0d
6 changed files with 106 additions and 25 deletions

View File

@@ -1,10 +1,11 @@
#ifndef VM_FRAME_H
#define VM_FRAME_H
#include "threads/thread.h"
#include "threads/palloc.h"
void frame_init (void);
void *frame_alloc (enum palloc_flags);
void *frame_alloc (enum palloc_flags, void *, struct thread *);
void frame_free (void *frame);
#endif /* vm/frame.h */