Use arm11 entry define for screen.c, fix isFirmlaunch not being always defined

This commit is contained in:
Aurora Wright
2017-05-20 13:46:12 +02:00
parent 57900e91ba
commit de0f1dc156
6 changed files with 5 additions and 8 deletions

View File

@@ -26,7 +26,6 @@
void launchFirm(Firm *firm, int argc, char **argv)
{
//Copy FIRM sections to respective memory locations
for(u32 sectionNum = 0; sectionNum < 4 && firm->section[sectionNum].size != 0; sectionNum++)
memcpy(firm->section[sectionNum].address, (u8 *)firm + firm->section[sectionNum].offset, firm->section[sectionNum].size);

View File

@@ -30,7 +30,7 @@ void main(int argc __attribute__((unused)), char **argv)
char absPath[24 + 255];
u32 i;
for(i = 0; i < 23 + 255 && argv[0][i] != 0; i++)
for(i = 0; i < sizeof(absPath) - 1 && argv[0][i] != 0; i++)
absPath[i] = argv[0][i];
absPath[i] = 0;