X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ginge.git;a=blobdiff_plain;f=loader%2Fpatches.c;h=5418c1c80f5ae3ca80be6154de5caf238ac5e07b;hp=673c3c5772416473a0fb25110a4faf4576ab757a;hb=3ef07128a8ad8a12688beee244c5e0a2629581de;hpb=ad37f577261dad19e7b0c7aedf68a800f13ed515 diff --git a/loader/patches.c b/loader/patches.c index 673c3c5..5418c1c 100644 --- a/loader/patches.c +++ b/loader/patches.c @@ -33,6 +33,13 @@ static const unsigned int sig_mmap[] = { }; #define sig_mask_mmap sig_mask_all +static const unsigned int sig_munmap[] = { + 0xef90005b, // svc 0x90005b + 0xe3700a01, // cmn r0, #0x1000 + 0x312fff1e, // bxcc lr +}; +#define sig_mask_munmap sig_mask_all + static const unsigned int sig_mmap2[] = { 0xe52d5004, // push {r5} 0xe59d5008, // ldr r5, [sp, #8] @@ -132,6 +139,7 @@ static const struct { PATCH(open), PATCH(mmap), PATCH(mmap2), // mmap2 syscall + PATCH(munmap), PATCH(read), PATCH(ioctl), PATCH_(hw_ioctl, hw_ioctl, 1),