4mb paging help
4mb paging help
Whether somebody could write me in the assembler how to map entire 4GB using of the memory 4MB of pages
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
Re: 4mb paging help
Serious?...CandyMan wrote:Whether somebody could write me in the assembler how to map entire 4GB using of the memory 4MB of pages
Re: 4mb paging help
Hi,
Ok?
Cheers,
Brendan
Code: Select all
mov eax,0x00000000 | FLAGS
mov edi,pageDirectoryAddress
cld
.l1:
stosd
add eax,4*1024*1024
jnc .l1
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: 4mb paging help
Thanks all, problem solved!
Last edited by CandyMan on Sun Aug 28, 2011 5:46 am, edited 1 time in total.
- 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: 4mb paging help
I could.
Seriously, considering the circumstances Brendan is being exceptionally nice by posting code where you don't deserve it. Yet I can't find a single trace of you taking advantage of it. Worse, your entire ASM file reeks of a beginner developer. An OS is not something you just do in an afternoon to have something to show off on your first day of school.
In other words: read the rules. We do not do your homework.
Seriously, considering the circumstances Brendan is being exceptionally nice by posting code where you don't deserve it. Yet I can't find a single trace of you taking advantage of it. Worse, your entire ASM file reeks of a beginner developer. An OS is not something you just do in an afternoon to have something to show off on your first day of school.
In other words: read the rules. We do not do your homework.