PSPLINK and extended memory

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

PSPLINK and extended memory

Post by m0skit0 »

Does any psplink version support extended 32 MB on Slims? Because I got this exception:

Code: Select all

host0:/> Exception - Bus error (data)
Thread ID - 0x05142905
Th Name   - SCE_VSH_GRAPHICS
Module ID - 0x0525B27D
Mod Name  - sceHVUI_Module
EPC       - 0x0A2D7C68
Cause     - 0x9000001C
BadVAddr  - 0x0A010500
Status    - 0x60088613
zr:0x00000000 at:0xDEADBEEF v0:0x00000000 v1:0x08F9532C
a0:0x08F9532D a1:0x0000000C a2:0x0B7FE5FC a3:0x0B7FE600
t0:0x08F95320 t1:0x0A32E144 t2:0x00000000 t3:0xDEADBEEF
t4:0xDEADBEEF t5:0xDEADBEEF t6:0xDEADBEEF t7:0xDEADBEEF
s0:0x08F95320 s1:0xFFFFFFFF s2:0x00000000 s3:0x0A30DA54
s4:0x0A2BF060 s5:0x00000001 s6:0x090871CC s7:0x0A090000
t8:0xDEADBEEF t9:0xDEADBEEF k0:0x0B7FEF00 k1:0x00000000
gp:0x0A091790 sp:0x0B7FE5E0 fp:0x08FA1A00 ra:0x0A2D7C70
Bur psplink refuses to access 0x0AXXXXXX memory addresses.

Any clue anout this?
The Incredible Bill Gates wrote:The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Raiden
Posts: 10
Joined: Sat Nov 14, 2009 7:17 pm

Post by Raiden »

Code: Select all

at:0xDEADBEEF
t3:0xDEADBEEF 
t4:0xDEADBEEF 
t5:0xDEADBEEF 
t6:0xDEADBEEF 
t7:0xDEADBEEF 
t8:0xDEADBEEF 
t9:0xDEADBEEF
Lol, what kind of code is that? :D
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

Post by m0skit0 »

OFW code, namely sceHVUI_Module, as seen in the exception :P Anyway, those registers are rarely used.
The Incredible Bill Gates wrote:The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
yokfran
Posts: 12
Joined: Mon Dec 28, 2009 9:17 pm

Post by yokfran »

m0skit0 wrote:OFW code, namely sceHVUI_Module, as seen in the exception :P Anyway, those registers are rarely used.

it's in file "decodeaddr.c"
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=0

Code: Select all

static struct mem_entry g_memareas[] = 
{
        { 0x00010000, (16 * 1024), MEM_ATTRIB_ALL, "Scratchpad", 0 },
        { 0x40010000, (16 * 1024), MEM_ATTRIB_ALL, "Scratchpad (uncached)", 0 },
        { 0x04000000, (2 * 1024 * 1024), MEM_ATTRIB_ALL, "VRAM", 0 },
        { 0x44000000, (2 * 1024 * 1024), MEM_ATTRIB_ALL, "VRAM (uncached)", 0 },
        { 0x08800000, (24 * 1024 * 1024), MEM_ATTRIB_ALL, "User memory", 0 },
        { 0x48800000, (24 * 1024 * 1024), MEM_ATTRIB_ALL, "User memory (uncached)", 0 },
        { 0x88000000, (4 * 1024 * 1024), MEM_ATTRIB_ALL, "Kernel memory (low)", 0 },
        { 0xA8000000, (4 * 1024 * 1024), MEM_ATTRIB_ALL, "Kernel memory (low uncached)", 0 },
        /* Don't use the following 2 on a 1.5, just crashes the psp */
        { 0x88400000, (4 * 1024 * 1024), MEM_ATTRIB_ALL, "Kernel memory (mid v1.0 only)", 1 },
        { 0xA8400000, (4 * 1024 * 1024), MEM_ATTRIB_ALL, "Kernel memory (mid v1.0 only uncached)", 1 },
        { 0x88800000, (24 * 1024 * 1024), MEM_ATTRIB_ALL, "Kernel memory (high)", 0 },
        { 0xA8800000, (24 * 1024 * 1024), MEM_ATTRIB_ALL, "Kernel memory (high uncached)", 0 },
        { 0xBFC00000, (1 * 1024 * 1024), MEM_ATTRIB_ALL, "Internal RAM", 0 },
        { 0, 0, 0, NULL }
};
and these two lines

Code: Select all

{ 0x08800000, (24 * 1024 * 1024), MEM_ATTRIB_ALL, "User memory", 0 },
        { 0x48800000, (24 * 1024 * 1024), MEM_ATTRIB_ALL, "User memory (uncached)", 0 },
change to

{ 0x08800000, (24 * 1024 * 1024 + 32 * 1024 * 1024), MEM_ATTRIB_ALL, "User memory", 0 },
{ 0x48800000, (24 * 1024 * 1024 + 32 * 1024 * 1024), MEM_ATTRIB_ALL, "User memory (uncached)", 0 },
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

Post by m0skit0 »

Thanks for that, worked like a charm :)
The Incredible Bill Gates wrote:The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Post Reply