Parcourir la source

update comments in page_remote_pte function::pmm.c

main
chyyuu il y a 11 ans
Parent
révision
0612d83623
7 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. +1
    -1
      labcodes/lab2/kern/mm/pmm.c
  2. +1
    -1
      labcodes/lab3/kern/mm/pmm.c
  3. +1
    -1
      labcodes/lab4/kern/mm/pmm.c
  4. +1
    -1
      labcodes/lab5/kern/mm/pmm.c
  5. +1
    -1
      labcodes/lab6/kern/mm/pmm.c
  6. +1
    -1
      labcodes/lab7/kern/mm/pmm.c
  7. +1
    -1
      labcodes/lab8/kern/mm/pmm.c

+ 1
- 1
labcodes/lab2/kern/mm/pmm.c Voir le fichier

@ -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

+ 1
- 1
labcodes/lab3/kern/mm/pmm.c Voir le fichier

@ -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

+ 1
- 1
labcodes/lab4/kern/mm/pmm.c Voir le fichier

@ -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

+ 1
- 1
labcodes/lab5/kern/mm/pmm.c Voir le fichier

@ -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

+ 1
- 1
labcodes/lab6/kern/mm/pmm.c Voir le fichier

@ -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

+ 1
- 1
labcodes/lab7/kern/mm/pmm.c Voir le fichier

@ -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

+ 1
- 1
labcodes/lab8/kern/mm/pmm.c Voir le fichier

@ -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

Chargement…
Annuler
Enregistrer