Is there anything special in 0~0x100000?

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.
Post Reply
couriernew
Posts: 1
Joined: Sun Aug 08, 2021 5:04 pm

Is there anything special in 0~0x100000?

Post by couriernew »

I tried to change it but it won't change. Here is my code.

Code: Select all

    char *str = (char*)(0x100000 - 1600);

    //memset(str, 0, 1600);

    for(int j = 0; j < 40; j++)
    {
        for(int i = 0; i < 40; i++)
        {
            kprintf("%d ", str[j * 40 + i]);
        }
        kprintf("\n");
    }
Whether I removed '//' before memset(str, 0, 1600) or not, the output I saw is always the same.
(Sorry for my suck English.)
My kernel runs on Bochs 2.7
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: Is there anything special in 0~0x100000?

Post by Octocontrabass »

There is RAM from 0 to 0x9FFFF, then MMIO from 0xA0000-0xDFFFF, then ROM from 0xE0000-0xFFFFF.

You're trying to modify ROM.
Post Reply