notaz.gp2x.de
/
ginge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build
[ginge.git]
/
loader
/
loader.c
diff --git
a/loader/loader.c
b/loader/loader.c
index
28bdf8e
..
7e71d4d
100644
(file)
--- a/
loader/loader.c
+++ b/
loader/loader.c
@@
-1,4
+1,9
@@
-// vim:shiftwidth=2:expandtab
+/*
+ * GINGE - GINGE Is Not Gp2x Emulator
+ * (C) notaz, 2010-2011
+ *
+ * This work is licensed under the MAME license, see COPYING file for details.
+ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-125,7
+130,7
@@
int main(int argc, char *argv[])
return 1;
}
return 1;
}
-
printf
("load %d %08x-%08x from %08x\n", phdr[i].p_type,
+
log
("load %d %08x-%08x from %08x\n", phdr[i].p_type,
phdr[i].p_vaddr, end_addr, phdr[i].p_offset);
align = phdr[i].p_vaddr & 0xfff;
phdr[i].p_vaddr, end_addr, phdr[i].p_offset);
align = phdr[i].p_vaddr & 0xfff;
@@
-170,10
+175,11
@@
int main(int argc, char *argv[])
stack_frame[sfp++] = (long)environ[i];
stack_frame[sfp++] = 0;
stack_frame[sfp++] = (long)environ[i];
stack_frame[sfp++] = 0;
-
printf
("entering %08x, %d stack entries\n", hdr.e_entry, sfp);
+
log
("entering %08x, %d stack entries\n", hdr.e_entry, sfp);
do_entry(hdr.e_entry, stack_frame, sfp, NULL);
fprintf(stderr, "do_entry failed!\n");
return 1;
}
do_entry(hdr.e_entry, stack_frame, sfp, NULL);
fprintf(stderr, "do_entry failed!\n");
return 1;
}
+// vim:shiftwidth=2:expandtab