notaz.gp2x.de
/
ginge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip, most of my SD static bins work
[ginge.git]
/
loader
/
tools
/
static.c
diff --git
a/loader/tools/static.c
b/loader/tools/static.c
index
edf7139
..
50013c7
100644
(file)
--- a/
loader/tools/static.c
+++ b/
loader/tools/static.c
@@
-4,6
+4,8
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
+#include <sys/ioctl.h>
+#include <signal.h>
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
@@
-23,6
+25,8
@@
int main(int argc, char *argv[])
}
memregs = mmap(NULL, 0x10000, PROT_READ|PROT_WRITE, MAP_SHARED, memdev, 0xc0000000);
}
memregs = mmap(NULL, 0x10000, PROT_READ|PROT_WRITE, MAP_SHARED, memdev, 0xc0000000);
+ ioctl(-1, 0);
+ signal(7, SIG_DFL);
for (i = 0; i < 2; i++)
printf("%02x %04x %08x\n", ((char *)memregs)[0x2011],
for (i = 0; i < 2; i++)
printf("%02x %04x %08x\n", ((char *)memregs)[0x2011],