mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-26 20:15:03 +00:00
clang format
This commit is contained in:
parent
736b451f82
commit
d0c3ce6413
@ -1245,7 +1245,8 @@ int PS4_SYSV_ABI scePthreadGetschedparam(ScePthread thread, int* policy,
|
|||||||
|
|
||||||
int PS4_SYSV_ABI scePthreadSetschedparam(ScePthread thread, int policy,
|
int PS4_SYSV_ABI scePthreadSetschedparam(ScePthread thread, int policy,
|
||||||
const SceKernelSchedParam* param) {
|
const SceKernelSchedParam* param) {
|
||||||
LOG_ERROR(Kernel_Pthread, "(STUBBED) called policy={}, sched_priority={}", policy, param->sched_priority);
|
LOG_ERROR(Kernel_Pthread, "(STUBBED) called policy={}, sched_priority={}", policy,
|
||||||
|
param->sched_priority);
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,8 +125,10 @@ static void PatchFsAccess(u8* code, const TLSPattern& tls_pattern, Xbyak::CodeGe
|
|||||||
const u32 idx2nd = slot % PthreadKeySecondLevelSize;
|
const u32 idx2nd = slot % PthreadKeySecondLevelSize;
|
||||||
const auto target_reg = Xbyak::Reg64(tls_pattern.target_reg);
|
const auto target_reg = Xbyak::Reg64(tls_pattern.target_reg);
|
||||||
c.putSeg(fs);
|
c.putSeg(fs);
|
||||||
c.mov(target_reg, qword[PthreadSpecificOffset + idx1st * 8]); // Load first level specific array.
|
c.mov(target_reg,
|
||||||
c.mov(target_reg, qword[target_reg + idx2nd * 16 + 8]); // Load data member of pthread_key_data our slot specifies.
|
qword[PthreadSpecificOffset + idx1st * 8]); // Load first level specific array.
|
||||||
|
c.mov(target_reg, qword[target_reg + idx2nd * 16 +
|
||||||
|
8]); // Load data member of pthread_key_data our slot specifies.
|
||||||
c.jmp(code + total_size); // Return to the instruction right after the mov.
|
c.jmp(code + total_size); // Return to the instruction right after the mov.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user