mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-09 07:14:14 +08:00
把fit_size的策略再改回去
This commit is contained in:
parent
23a7f4dfd7
commit
f830537f9e
@ -337,6 +337,8 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz
|
||||
{
|
||||
u32 size = realend + totalsize;
|
||||
|
||||
if( size > SIZE_32M )
|
||||
{
|
||||
// get the biggest space that all bytes is 0
|
||||
CodeLocation found=NULL, current=NULL;
|
||||
int szfound=0, szcurrent=0;
|
||||
@ -393,9 +395,9 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz
|
||||
{
|
||||
return found + FIT_SPACE_RESERVED;
|
||||
}
|
||||
|
||||
// cannot find a good block
|
||||
if( size > SIZE_32M ) return NULL;
|
||||
else return NULL;
|
||||
}
|
||||
|
||||
// grow cart volumn
|
||||
else if( szrom < size || nextPow2(size) != nextPow2(szrom) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user