Hi,
I was reading about paging (the tutorial) but now I still have some questions.
When they explained attributes: present, dirty, R/W... They didn't very well explained every attribute.
-Now I was wondering what's the difference between available and present? Does present mean there is a an adress in a phisical memory and available that it is not used by an other program? But then why do they set the attributes in the tutorial to 011(supervisor,R/W,present) and not to 111 00 0 0 00 0 1 1 (available,supervisor,R/W,present)?
-And what does "dirty" mean?
Ty.
[Solved] Questions:Paging
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
[Solved] Questions:Paging
Last edited by LegendDairy on Thu Nov 11, 2010 8:09 am, edited 1 time in total.
Re: Questions:Paging
Available as in availale for the OS to use as it pleases. That article mentions it, btw.Legendmythe wrote:-Now I was wondering what's the difference between available and present?
In short, means that the page have been written to.Legendmythe wrote:-And what does "dirty" mean?
More verbose explanations can be found in the OSDev wiki:
http://wiki.osdev.org/Paging
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
Re: Questions:Paging
Oke thanks but i got 1 last question so if I would enable multitasking and in the kernel I say these pages are your and are RW and in the first program I say the kernel pages are only R but these pages you can use. Would that prevent them from messing around in the wrong memory or would it just not work at all?Artlav wrote:Available as in availale for the OS to use as it pleases. That article mentions it, btw.Legendmythe wrote:-Now I was wondering what's the difference between available and present?
In short, means that the page have been written to.Legendmythe wrote:-And what does "dirty" mean?
More verbose explanations can be found in the OSDev wiki:
http://wiki.osdev.org/Paging
Re: Questions:Paging
The pagefault handler. It is invoked when code references a page that is not present, or if an R/W (or user/kernel) violation is made. Read the section in the Intel manual about it. It covers it in-depth.Legendmythe wrote:Oke thanks but i got 1 last question so if I would enable multitasking and in the kernel I say these pages are your and are RW and in the first program I say the kernel pages are only R but these pages you can use. Would that prevent them from messing around in the wrong memory or would it just not work at all?
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
Re: Questions:Paging
K ty.rdos wrote:The pagefault handler. It is invoked when code references a page that is not present, or if an R/W (or user/kernel) violation is made. Read the section in the Intel manual about it. It covers it in-depth.Legendmythe wrote:Oke thanks but i got 1 last question so if I would enable multitasking and in the kernel I say these pages are your and are RW and in the first program I say the kernel pages are only R but these pages you can use. Would that prevent them from messing around in the wrong memory or would it just not work at all?