EE memory access

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
loser
Posts: 25
Joined: Mon Feb 07, 2005 10:27 am
Contact:

EE memory access

Post by loser »

hi all

something that i have always been uncertain about was memory access to different areas on the EE. ive read the section on memory access in the EE docs, and in summary they seem to be basically as follows.

0x0xxxxxxx = user memory access
0x2xxxxxxx = uncached user memory access
0x8xxxxxxx = kernel memory access
0xAxxxxxxx = uncached kernel memory access

as well as this there is the 'kernel memory range' (0x00000 - 0x80000 ?) which can only be accessed when in kernel mode. accessing the 'kernel memory range' in user mode gives an exception (TLB i think). but what about accessing user memory when in kernel mode?
if i change to kernel mode can i access memory above the 'kernel memory range' without the 0x80000000 prefix?
if there anything bad about doing so?
am i supposed to access ALL memory with the 0x80000000 prefix when in kernel mode?

is there anything wrong with accessing memory as uncached? (besides making memory access slower due to not using caches)

any other bits of information around these points would be appreciated. :)

thx
loser
Post Reply