* returns created pthread_t as int64
()
| 347 | * returns created pthread_t as int64 |
| 348 | */ |
| 349 | async spawn_thread() { |
| 350 | |
| 351 | //add pthread_exit((void*)0x44414544); -> "DEAD" |
| 352 | this.fcall(libKernelBase.add32(OFFSET_lk_pthread_exit), 0x44414544); |
| 353 | |
| 354 | 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)); |
| 355 | return p.read8(this.stack_memory.add32(0x48)); |
| 356 | } |
| 357 | } |