Paging.
Paging.
I made alot of progress on my kernel this weekend. I am busy implementing my paging now. I wanted to find out are how many page tables i should have? In the tutorials i have read they all say 2. Table 1 at 0x0 and table 768 at 0x100000. Is this correct? The other thing i wanted to find out is how to dynamically free and allocate memory?
Gizmic OS
Currently - Busy with FAT12 driver and VFS
Currently - Busy with FAT12 driver and VFS
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Paging.
I suggest you start reading up on the basics before asking such questions. http://www.jamesmolloy.co.uk/tutorial_html/index.html
Short answers:
Q1) I can't tell.
Q2) At least one guide I know uses no page tables
Q3) Your math's off.
Q4) See above link.
Short answers:
Q1) I can't tell.
Q2) At least one guide I know uses no page tables
Q3) Your math's off.
Q4) See above link.
Re: Paging.
The number of page tables that you should have depends on how big you want your address space to be(the maximum is 1024, or 4G of memory)(each page table gives you access to 4M of memory).
For dynamic memory allocation, http://wiki.osdev.org/Memory_Allocation might also help.
For dynamic memory allocation, http://wiki.osdev.org/Memory_Allocation might also help.
OS-LUX V0.0
Working on...
Memory management: the Pool
Working on...
Memory management: the Pool