forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing Memory Map? (Increasing User Space?)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Tue Aug 10, 2010 7:46 am    Post subject: Changing Memory Map? (Increasing User Space?) Reply with quote

Im not talking about Slim Extra Memory here...
What I hope to figure out is a way to manage the available memory myself...

My goal is to increase the 24MB user space region by, lets say 1MB and reducing the 8MB kernel one by 1MB...

Does the wise forum have any answers for me? :D
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
crazyc



Joined: 17 Jun 2005
Posts: 410

PostPosted: Tue Aug 10, 2010 8:00 am    Post subject: Reply with quote

You can use sceKernelVolatileMemLock to allocate the 4MB region at 0x08400000 but it will be overwritten if you suspend. Also, if you don't use the ME (at least don't use the sony me kernel), you can use the 1MB at 0x08300000 but you have to set the access bits and stop the ME.
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Tue Aug 10, 2010 8:10 am    Post subject: Reply with quote

Its not really "allocating" I want to do... I dont just want to have a buffer...

I need to load a module in there... and need to ensure it isnt interfering with game code that runs on the normal 24MB userspace.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
Davee



Joined: 22 Jun 2009
Posts: 59

PostPosted: Tue Aug 10, 2010 9:08 am    Post subject: Reply with quote

There is no 8MB of kernel memory.
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Tue Aug 10, 2010 9:12 am    Post subject: Reply with quote

I did some research myself and figured that sysmem is managing the partitions...

Fine, then call it whatever you like. I need to increase the user partition in size somehow... by reducing the kernel partition or something else...

So... does anyone have a idea how I could go about doing that?
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Aug 10, 2010 2:29 pm    Post subject: Reply with quote

Maybe the addresses and lengths are hard-coded somewhere?
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Tue Aug 10, 2010 2:39 pm    Post subject: Reply with quote

coolbird: you don't like crazyc's suggestion of using the volatile ram?
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Tue Aug 10, 2010 8:10 pm    Post subject: Reply with quote

Thing is... even if I was to manually load my module into the buffer and start it from there... (would in theory be possible by setting the thread userlevel to 2 and using the wlanusb buffer function...)

The stack space, etc... would still get allocated from the 24MB main user partition... which would in the end still draw space from the running games memory...

So... using the volatile memory isnt the solution I want... atleast not in that way... just a buffer isnt helping me due to the way the PSP allocates it stack.

I would need to add the volatile memory or any other memory therefore, to the user partition pool somehow... to make it work the way I want...

That way I could ensure there will be enough memory available for a user module Im running, without crashing the running game because it lacks memory...
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
Davee



Joined: 22 Jun 2009
Posts: 59

PostPosted: Tue Aug 10, 2010 8:26 pm    Post subject: Reply with quote

Well, you can't load to volatile as in-game is it controlled via utility.prx and used to load firmware UI such as savedata, gameshare etc. It is also used to store payload data in sleep mode and so which data is wiped.

Kernel memory is small, and majority of it is used by the firmware and the custom firmware. I HIGHLY if not 100% believe that there is not even 0.5MB free.

Then of course there is VRAM and stuff... which is just not really do-able.

1MB is a huge amount to be asking for though, your only chance is on the PSP slim +.
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Tue Aug 10, 2010 9:31 pm    Post subject: Reply with quote

Any ammount of memory, if added to the userspace, would help me tremendously...

I somehow need to remap and organize the RAM myself... in a way I can increase the userpool...

So if you know of a way to do that, please tell me.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group