* returns created pthread_t as int64
()
| 312 | * returns created pthread_t as int64 |
| 313 | */ |
| 314 | async spawn_thread() { |
| 315 | |
| 316 | //add pthread_exit((void*)0x44414544); -> "DEAD" |
| 317 | this.fcall(libKernelBase.add32(OFFSET_lk_pthread_exit), 0x44414544); |
| 318 | |
| 319 | await chain.call(libKernelBase.add32(OFFSET_lk_pthread_create_name_np), this.stack_memory.add32(0x48), 0x0, libSceLibcInternalBase.add32(OFFSET_lc_longjmp), this.stack_memory, this.stack_memory.add32(0x50)); |
| 320 | return p.read8(this.stack_memory.add32(0x48)); |
| 321 | } |
| 322 | } |