- more speed up flash load

git-svn-id: http://moon:8086/svn/mips@57 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2015-06-15 17:26:57 +00:00
parent f986c8829d
commit b31b7676a7
+14 -1
View File
@@ -240,8 +240,21 @@ int main(int argc, char *argv[])
// because D-Cache was invalidated during execution of start code
pFlashMem += img_hdr.img_base/4;
for (i=0; i < img_hdr.img_size/4; i++)
for (i=0; i < img_hdr.img_size/4; i += 8)
{
pSdram32[i+0] = pFlashMem[i+0];
pSdram32[i+1] = pFlashMem[i+1];
pSdram32[i+2] = pFlashMem[i+2];
pSdram32[i+3] = pFlashMem[i+3];
pSdram32[i+4] = pFlashMem[i+4];
pSdram32[i+5] = pFlashMem[i+5];
pSdram32[i+6] = pFlashMem[i+6];
pSdram32[i+7] = pFlashMem[i+7];
}
for (i; i < img_hdr.img_size/4; i++)
{
pSdram32[i] = pFlashMem[i];
}
sputs("Booting from ");print_word(img_hdr.target_base);sputs("\n\n");
Exec_at((void*)pSdram32);