pgtbl lab finished
This commit is contained in:
@ -188,6 +188,9 @@ void vmprint(pagetable_t);
|
|||||||
pte_t* pgpte(pagetable_t, uint64);
|
pte_t* pgpte(pagetable_t, uint64);
|
||||||
void superfree(void *pa);
|
void superfree(void *pa);
|
||||||
void* superalloc();
|
void* superalloc();
|
||||||
|
int copyin_new(pagetable_t, char *, uint64, uint64);
|
||||||
|
int copyinstr_new(pagetable_t, char *, uint64, uint64);
|
||||||
|
uint64 sys_dirtypages(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// plic.c
|
// plic.c
|
||||||
@ -204,14 +207,6 @@ void virtio_disk_intr(void);
|
|||||||
// number of elements in fixed-size array
|
// number of elements in fixed-size array
|
||||||
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))
|
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef LAB_PGTBL
|
|
||||||
// vmcopyin.c
|
|
||||||
int copyin_new(pagetable_t, char *, uint64, uint64);
|
|
||||||
int copyinstr_new(pagetable_t, char *, uint64, uint64);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef LAB_LOCK
|
#ifdef LAB_LOCK
|
||||||
// stats.c
|
// stats.c
|
||||||
void statsinit(void);
|
void statsinit(void);
|
||||||
|
|||||||
@ -43,3 +43,4 @@ entry("recv");
|
|||||||
entry("pgpte");
|
entry("pgpte");
|
||||||
entry("kpgtbl");
|
entry("kpgtbl");
|
||||||
entry("pgaccess");
|
entry("pgaccess");
|
||||||
|
entry("dirtypages");
|
||||||
|
|||||||
Reference in New Issue
Block a user