4mb paging help

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
CandyMan
Posts: 6
Joined: Sat Aug 27, 2011 9:25 am

4mb paging help

Post by CandyMan »

Whether somebody could write me in the assembler how to map entire 4GB using of the memory 4MB of pages
User avatar
LegendDairy
Member
Member
Posts: 52
Joined: Sat Nov 06, 2010 10:42 am
Location: Antwerp (Belgium)

Re: 4mb paging help

Post by LegendDairy »

CandyMan wrote:Whether somebody could write me in the assembler how to map entire 4GB using of the memory 4MB of pages
Serious?...
CandyMan
Posts: 6
Joined: Sat Aug 27, 2011 9:25 am

Re: 4mb paging help

Post by CandyMan »

Yes
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: 4mb paging help

Post by Brendan »

Hi,

Code: Select all

    mov eax,0x00000000 | FLAGS
    mov edi,pageDirectoryAddress
    cld
.l1:
    stosd
    add eax,4*1024*1024
    jnc .l1
Ok?

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.
CandyMan
Posts: 6
Joined: Sat Aug 27, 2011 9:25 am

Re: 4mb paging help

Post by CandyMan »

Thanks all, problem solved!
Last edited by CandyMan on Sun Aug 28, 2011 5:46 am, edited 1 time in total.
User avatar
Combuster
Member
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

Post by Combuster »

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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked