mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 00:33:16 +00:00
clang format
This commit is contained in:
parent
dbeed80e3b
commit
ce6a01bd41
7 changed files with 14 additions and 18 deletions
|
@ -9,8 +9,8 @@
|
|||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <asm/prctl.h> /* Definition of ARCH_* constants */
|
||||
#include <sys/syscall.h> /* Definition of SYS_* constants */
|
||||
#include <asm/prctl.h> /* Definition of ARCH_* constants */
|
||||
#include <sys/syscall.h> /* Definition of SYS_* constants */
|
||||
#endif
|
||||
|
||||
namespace Core {
|
||||
|
@ -93,12 +93,12 @@ static void PatchFsAccess(u8* code, const TLSPattern& tls_pattern, Xbyak::CodeGe
|
|||
static u32 slot = 0;
|
||||
|
||||
void SetTcbBase(void* image_address) {
|
||||
asm volatile("wrgsbase %0" :: "r" (image_address) : "memory");
|
||||
asm volatile("wrgsbase %0" ::"r"(image_address) : "memory");
|
||||
}
|
||||
|
||||
Tcb* GetTcbBase() {
|
||||
Tcb* tcb;
|
||||
asm volatile("rdgsbase %0" : "=r" (tcb) :: "memory");
|
||||
asm volatile("rdgsbase %0" : "=r"(tcb)::"memory");
|
||||
return tcb;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue