From 0612d83623c221541cb34d82e5233388bd9a7b18 Mon Sep 17 00:00:00 2001 From: chyyuu Date: Sat, 12 Oct 2013 07:59:22 +0800 Subject: [PATCH] update comments in page_remote_pte function::pmm.c --- labcodes/lab2/kern/mm/pmm.c | 2 +- labcodes/lab3/kern/mm/pmm.c | 2 +- labcodes/lab4/kern/mm/pmm.c | 2 +- labcodes/lab5/kern/mm/pmm.c | 2 +- labcodes/lab6/kern/mm/pmm.c | 2 +- labcodes/lab7/kern/mm/pmm.c | 2 +- labcodes/lab8/kern/mm/pmm.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/labcodes/lab2/kern/mm/pmm.c b/labcodes/lab2/kern/mm/pmm.c index 9e4f338..af54731 100644 --- a/labcodes/lab2/kern/mm/pmm.c +++ b/labcodes/lab2/kern/mm/pmm.c @@ -417,7 +417,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0 diff --git a/labcodes/lab3/kern/mm/pmm.c b/labcodes/lab3/kern/mm/pmm.c index 3b63deb..77633f2 100644 --- a/labcodes/lab3/kern/mm/pmm.c +++ b/labcodes/lab3/kern/mm/pmm.c @@ -430,7 +430,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0 diff --git a/labcodes/lab4/kern/mm/pmm.c b/labcodes/lab4/kern/mm/pmm.c index 543e5e9..59c70d9 100644 --- a/labcodes/lab4/kern/mm/pmm.c +++ b/labcodes/lab4/kern/mm/pmm.c @@ -433,7 +433,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0 diff --git a/labcodes/lab5/kern/mm/pmm.c b/labcodes/lab5/kern/mm/pmm.c index cc3f28c..cb92075 100644 --- a/labcodes/lab5/kern/mm/pmm.c +++ b/labcodes/lab5/kern/mm/pmm.c @@ -433,7 +433,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0 diff --git a/labcodes/lab6/kern/mm/pmm.c b/labcodes/lab6/kern/mm/pmm.c index cc3f28c..cb92075 100644 --- a/labcodes/lab6/kern/mm/pmm.c +++ b/labcodes/lab6/kern/mm/pmm.c @@ -433,7 +433,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0 diff --git a/labcodes/lab7/kern/mm/pmm.c b/labcodes/lab7/kern/mm/pmm.c index cc3f28c..cb92075 100644 --- a/labcodes/lab7/kern/mm/pmm.c +++ b/labcodes/lab7/kern/mm/pmm.c @@ -433,7 +433,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0 diff --git a/labcodes/lab8/kern/mm/pmm.c b/labcodes/lab8/kern/mm/pmm.c index cc3f28c..cb92075 100644 --- a/labcodes/lab8/kern/mm/pmm.c +++ b/labcodes/lab8/kern/mm/pmm.c @@ -433,7 +433,7 @@ page_remove_pte(pde_t *pgdir, uintptr_t la, pte_t *ptep) { * PTE_P 0x001 // page table/directory entry flags bit : Present */ #if 0 - if (0) { //(1) check if page directory is present + if (0) { //(1) check if this page table entry is present struct Page *page = NULL; //(2) find corresponding page to pte //(3) decrease page reference //(4) and free this page when page reference reachs 0