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.
Well grub says... here the amount of ram above 1mb, thats why I add on the 1024 before I convert it to bytes.
I am assuming that the memory wraps?? I tried setting a ptr to like 1gb in a system where only 128mb ram is present (and paging is off) and it set a byte without issue...
astrocrep wrote:I am assuming that the memory wraps?? I tried setting a ptr to like 1gb in a system where only 128mb ram is present (and paging is off) and it set a byte without issue...
It doesn't wrap - there's 4 GB (or more) of physical address space. Some of the space has RAM connected to it, some has ROM, some has memory mapped devices and some of it has nothing connected to it.
When you write to "top of RAM + 1 KB" you're writing to nothing. If you try to read the value back you'll probably (but not necessarily) read back 0xFFFFFFF, regardless of what value you wrote.
It's a bit like writing a letter addressed to "The Aliens" - you can send the letter, but don't expect the aliens to actually receive it.
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.