showmappings by Cheli Jefry Amarpal Singh Implementation First - - PowerPoint PPT Presentation

showmappings
SMART_READER_LITE
LIVE PREVIEW

showmappings by Cheli Jefry Amarpal Singh Implementation First - - PowerPoint PPT Presentation

showmappings by Cheli Jefry Amarpal Singh Implementation First we convert the address from a string to a hexadecimal long using strtol. Implementation First we convert the address from a string to a hexadecimal long using strtol. Next we


slide-1
SLIDE 1

showmappings

by Cheli Jefry Amarpal Singh

slide-2
SLIDE 2

Implementation

First we convert the address from a string to a hexadecimal long using strtol.

slide-3
SLIDE 3

Implementation

First we convert the address from a string to a hexadecimal long using strtol. Next we round the address ranges down to align with PGSIZE.

slide-4
SLIDE 4

Implementation

First we convert the address from a string to a hexadecimal long using strtol. Next we round the address ranges down to align with PGSIZE. For every address we call pgdir_walk with create flag set to zero to get the pte entry if it exists.

slide-5
SLIDE 5

Implementation

First we convert the address from a string to a hexadecimal long using strtol. Next we round the address ranges down to align with PGSIZE. For every address we call pgdir_walk with create flag set to zero to get the pte entry if it exists. We use the pte to convert to a physical address using PTE_ADDR.

slide-6
SLIDE 6

Implementation

First we convert the address from a string to a hexadecimal long using strtol. Next we round the address ranges down to align with PGSIZE. For every address we call pgdir_walk with create flag set to zero to get the pte entry if it exists. We use the pte to convert to a physical address using PTE_ADDR. We then mask off the relevants bits to determine the permissions and cprintf our results.

slide-7
SLIDE 7

Implementation

First we convert the address from a string to a hexadecimal long using strtol. Next we round the address ranges down to align with PGSIZE. For every address we call pgdir_walk with create flag set to zero to get the pte entry if it exists. We use the pte to convert to a physical address using PTE_ADDR. We then mask off the relevants bits to determine the permissions and cprintf our results. Debugging: We had to ensure that our current va (i) is greater than the startva to prevent an infinite loop.