FORUMS
Remove All Ads from XDA

Raphael WM6.1 ROMs Page Pool / Page Pool Changer

675 posts
Thanks Meter: 22
 
By Kevlar-Source, Senior Member on 27th September 2008, 03:30 PM
Post Reply Email Thread
29th September 2008, 07:05 PM |#11  
jcespi2005's Avatar
Senior Member
Flag Madrid
Thanks Meter: 190
 
Donate to Me
More
Quote:
Originally Posted by cmonex

well, here is an example:

.text:80058220 B0 28 9F E5 LDR R2, =dword_803F6350
.text:80058224 A8 78 9F E5 LDR R7, =0xA8081064
.text:80058228 00 30 95 E5 LDR R3, [R5]
.text:8005822C 9C 88 9F E5 LDR R8, =0x52444C55
.text:80058230 94 08 9F E5 LDR R0, =aKPagePoolSize0
.text:80058234 01 0C 53 E3 CMP R3, #0x100
.text:80058238 03 15 A0 03 MOVEQ R1, #0xC00000
.text:8005823C 02 15 A0 13 MOVNE R1, #0x800000
.text:80058240 00 10 82 E5 STR R1, [R2]
.text:80058244 00 30 97 E5 LDR R3, [R7]
.text:80058248 08 00 53 E1 CMP R3, R8
.text:8005824C 01 15 A0 03 MOVEQ R1, #0x400000
.text:80058250 00 10 82 05 STREQ R1, [R2]


0x803F6350 is what the pagepool changer usually patches, this is set to 6MB by default in the nk.exe. the problem is the real pagepool will never be 6MB, this code above dynamically decides if 4, 8, or 12MB it should be. (on my raphael it went for 12MB)

the elf patch is ok, as long as the STREQ on the last line doesn't execute, if it does, then copying the elf patch is not enough. so I suggest this patch:

STR R1, [R2] -> NOP (00 00 A0 E1)
and STREQ R1, [R2] -> another NOP (00 00 A0 E1)

after this pagepool changer should work nicely, and this is easier than that patching for Elf. once you patch the nk.exe like this, it will be fine.

on top of that, an entirely cosmetic patch: you can change the R1 contents too (similar to Elf patch) so KITL log will show the right value.

P.S: my guess is it only sets it to 4MB if ULDR is loaded. so usually not of importance.

Thanks for so deep info

The procedure is like the Elfin one...

Cheers
29th September 2008, 08:31 PM |#12  
Retired Recognized Developer
Flag Budapest
Thanks Meter: 49
 
More
Quote:
Originally Posted by jcespi2005

Thanks for so deep info

The procedure is like the Elfin one...

Cheers


yeah, and who pointed that out originally?
3rd December 2008, 01:07 AM |#13  
Senior Member
Thanks Meter: 5
 
More
I've tried the posted procedure for finding, and changing the Pagepool - but everytime i search for the hex string, i get no returned results. Am i doing something wrong?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes