This shows you the differences between the selected revision and the current version of the page.
| notes:lec15 2007/12/12 12:05 | notes:lec15 2007/12/12 19:14 current | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| For instance, consider the diagram above. Now suppose we were to execute the following line: | For instance, consider the diagram above. Now suppose we were to execute the following line: | ||
| ''pgdir_set(pgdir, //0x00803000//, //0x00010007//)'' | ''pgdir_set(pgdir, //0x00803000//, //0x00010007//)'' | ||
| - | This execution requires no additional memory allocation. We look at the page directory index (which in this case is //0x001//), and we notice that the page directory entry already exists. Therefore, we can follow it to the page table and place //0x00010007// in the page table index (in this case //0x003//). | + | This execution requires no additional memory allocation. We look at the page directory index (which in this case is //0x010//), and we notice that the page directory entry already exists. Therefore, we can follow it to the page table and place //0x00010007// in the page table index (in this case //0x003//). |
| However, now consider execution of the following line: | However, now consider execution of the following line: | ||