vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:




Using this library in your project

Include the header file in your project:



Functions

SceInt32 ksceKernelAtomicAdd32AndGet64InHiLoRange (SceUInt64 *val, SceInt32 add_val, SceInt32 limit)
 
SceInt32 ksceKernelAtomicAdd32AndGet64InRange (SceUInt64 *val, SceInt32 add_val, SceInt32 limit)
 
SceInt32 ksceKernelAtomicAddAndGetPositive32InRange (SceInt32 *val, SceInt32 add_val, SceInt32 limit)
 
SceInt32 ksceKernelAtomicDecIfLowPositive32 (SceInt32 *addr)
 
SceInt32 ksceKernelAtomicGet32AndSet64 (SceUInt64 *result, SceInt32 src)
 
SceInt32 ksceKernelAtomicGet32AndSet64_2 (SceUInt64 *result, SceInt32 src)
 
SceUInt32 ksceKernelAtomicIncrementHighwaterCounter (SceUInt32 *counter)
 
SceInt32 ksceKernelAtomicLimit64 (SceUInt64 *result, SceInt32 limit)
 
SceInt32 ksceKernelAtomicSubIfGreater64 (SceUInt64 *a1, SceUInt32 a2)
 
void ksceKernelAtomicSet8 (SceInt8 *store, SceInt8 value)
 
void ksceKernelAtomicSet16 (SceInt16 *store, SceInt16 value)
 
void ksceKernelAtomicSet32 (SceInt32 *store, SceInt32 value)
 
void ksceKernelAtomicSet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicCompareAndSet8 (SceInt8 *store, SceInt8 value, SceInt8 new_value)
 
SceInt16 ksceKernelAtomicCompareAndSet16 (SceInt16 *store, SceInt16 value, SceInt16 new_value)
 
SceInt32 ksceKernelAtomicCompareAndSet32 (SceInt32 *store, SceInt32 value, SceInt32 new_value)
 
SceInt64 ksceKernelAtomicCompareAndSet64 (SceInt64 *store, SceInt64 value, SceInt64 new_value)
 
SceInt8 ksceKernelAtomicAddAndGet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicAddAndGet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicAddAndGet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicAddAndGet64 (SceInt64 *store, SceInt64 value)
 
SceBool ksceKernelAtomicAddUnless8 (SceInt8 *store, SceInt8 value, SceInt8 cmpv)
 
SceBool ksceKernelAtomicAddUnless16 (SceInt16 *store, SceInt16 value, SceInt16 cmpv)
 
SceBool ksceKernelAtomicAddUnless32 (SceInt32 *store, SceInt32 value, SceInt32 cmpv)
 
SceBool ksceKernelAtomicAddUnless64 (SceInt64 *store, SceInt64 value, SceInt64 cmpv)
 
SceInt8 ksceKernelAtomicSubAndGet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicSubAndGet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicSubAndGet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicSubAndGet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicAndAndGet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicAndAndGet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicAndAndGet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicAndAndGet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicOrAndGet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicOrAndGet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicOrAndGet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicOrAndGet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicXorAndGet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicXorAndGet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicXorAndGet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicXorAndGet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicClearAndGet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicClearAndGet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicClearAndGet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicClearAndGet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndSet8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndSet16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndSet32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndSet64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndAdd8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndAdd16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndAdd32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndAdd64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndSub8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndSub16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndSub32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndSub64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndAnd8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndAnd16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndAnd32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndAnd64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndOr8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndOr16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndOr32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndOr64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndXor8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndXor16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndXor32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndXor64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicGetAndClear8 (SceInt8 *store, SceInt8 value)
 
SceInt16 ksceKernelAtomicGetAndClear16 (SceInt16 *store, SceInt16 value)
 
SceInt32 ksceKernelAtomicGetAndClear32 (SceInt32 *store, SceInt32 value)
 
SceInt64 ksceKernelAtomicGetAndClear64 (SceInt64 *store, SceInt64 value)
 
void ksceKernelAtomicClearMask8 (SceInt8 *store, SceInt8 value)
 
void ksceKernelAtomicClearMask16 (SceInt16 *store, SceInt16 value)
 
void ksceKernelAtomicClearMask32 (SceInt32 *store, SceInt32 value)
 
void ksceKernelAtomicClearMask64 (SceInt64 *store, SceInt64 value)
 
SceInt8 ksceKernelAtomicDecIfPositive8 (SceInt8 *store)
 
SceInt16 ksceKernelAtomicDecIfPositive16 (SceInt16 *store)
 
SceInt32 ksceKernelAtomicDecIfPositive32 (SceInt32 *store)
 
SceInt64 ksceKernelAtomicDecIfPositive64 (SceInt64 *store)
 
void ksceKernelDcacheCleanInvalidateRange (void *start, unsigned int size)
 The clean and invalidate a range the L1 dcache and L2. More...
 
void ksceKernelDcacheCleanInvalidateRangeForL1WBWA (void *start, unsigned int size)
 The clean and invalidate a range the L1 dcache. More...
 
void ksceKernelDcacheCleanRange (void *start, unsigned int size)
 The clean a range the L1 dcache and L2. More...
 
void ksceKernelDcacheCleanRangeForL1WBWA (void *start, unsigned int size)
 The clean a range the L1 dcache. More...
 
void ksceKernelDcacheInvalidateRange (void *start, unsigned int size)
 The invalidate a range the L1 dcache and L2. More...
 
void ksceKernelDcacheInvalidateRangeForL1WBWA (void *start, unsigned int size)
 The invalidate a range the L1 dcache. More...
 
void ksceKernelIcacheInvalidateRange (void *start, unsigned int size)
 The invalidate a range the L1 icache and L2. More...
 
void ksceKernelL1DcacheClean (void *start)
 The clean a one line the L1 icache. More...
 
void ksceKernelL1DcacheCleanRange (void *start, unsigned int size)
 The clean a range the L1 dcache. More...
 
void ksceKernelL1DcacheCleanAll (void)
 The clean all the L1 dcache. More...
 
void ksceKernelL1DcacheCleanInvalidate (void *start)
 The invalidate a one line the L1 icache. More...
 
void ksceKernelL1DcacheCleanInvalidateRange (void *start, unsigned int size)
 The clean and invalidate a range the L1 dcache. More...
 
void ksceKernelL1DcacheCleanInvalidateAll (void)
 The clean and invalidate all the L1 dcache. More...
 
void ksceKernelL1DcacheInvalidate (void *start)
 The invalidate a one line the L1 dcache. More...
 
void ksceKernelL1DcacheInvalidateRange (void *start, unsigned int size)
 The invalidate a range the L1 dcache. More...
 
void ksceKernelL1DcacheInvalidateAll (void)
 The invalidate all the L1 dcache. More...
 
void ksceKernelL1IcacheInvalidateRange (void *start, unsigned int size)
 The invalidate a range the L1 icache. More...
 
void ksceKernelL1IcacheInvalidateEntire (void)
 The invalidate entire the L1 icache. More...
 
void ksceKernelL1IcacheInvalidateEntireAllCore (void)
 The invalidate entire the L1 icache of all cores. More...
 
 VITASDK_BUILD_ASSERT_EQ (8, SceCorelockContext)
 
void ksceKernelCorelockInitialize (SceCorelockContext *ctx)
 
void ksceKernelCorelockLock (SceCorelockContext *ctx, SceUInt32 core)
 
void ksceKernelCorelockUnlock (SceCorelockContext *ctx)
 
int ksceKernelMMUGetMemoryType (void *vaddr)
 
int ksceKernelMMUVAtoPA (void *va, SceUIntPtr *pa)
 
int ksceKernelMMUVAtoPAWithMode (int mode, void *va, SceUIntPtr *pa)
 
void ksceKernelPleFlushRequest (void)
 
void ksceKernelRWSpinlockLowReadLock (SceKernelRWSpinlock *lock)
 Acquire a RWSpinlock for reading. More...
 
int ksceKernelRWSpinlockLowTryReadLock (SceKernelRWSpinlock *lock)
 Attempt to acquire a RWSpinlock for reading. More...
 
void ksceKernelRWSpinlockLowReadUnlock (SceKernelRWSpinlock *lock)
 Unlock a RWSpinlock previously acquired for reading. More...
 
SceKernelIntrStatus ksceKernelRWSpinlockLowReadLockCpuSuspendIntr (SceKernelRWSpinlock *lock)
 Acquire a RWSpinlock for reading and suspend interrupts if necessary. More...
 
SceKernelIntrStatus ksceKernelRWSpinlockLowTryReadLockCpuSuspendIntr (SceKernelRWSpinlock *lock)
 Attempt to acquire a RWSpinlock for reading and suspend interrupts if necessary. More...
 
void ksceKernelRWSpinlockLowReadUnlockCpuResumeIntr (SceKernelRWSpinlock *lock, SceKernelIntrStatus intr_status)
 Release a RWSpinlock previously acquired for reading and resume interrupts if necessary. More...
 
void ksceKernelRWSpinlockLowWriteLock (SceKernelRWSpinlock *lock)
 Acquire a RWSpinlock for writing. More...
 
int ksceKernelRWSpinlockLowTryWriteLock (SceKernelRWSpinlock *lock)
 Attempt to acquire a RWSpinlock for writing. More...
 
void ksceKernelRWSpinlockLowWriteUnlock (SceKernelRWSpinlock *lock)
 Unlock a RWSpinlock previously acquired for writing. More...
 
SceKernelIntrStatus ksceKernelRWSpinlockLowWriteLockCpuSuspendIntr (SceKernelRWSpinlock *lock)
 Acquire a RWSpinlock for writing and suspend interrupts if necessary. More...
 
SceKernelIntrStatus ksceKernelRWSpinlockLowTryWriteLockCpuSuspendIntr (SceKernelRWSpinlock *lock)
 Attempt to acquire a RWSpinlock for writing and suspend interrupts if necessary. More...
 
void ksceKernelRWSpinlockLowWriteUnlockCpuResumeIntr (SceKernelRWSpinlock *lock, SceKernelIntrStatus intr_status)
 Release a RWSpinlock acquired for writing and resume interrupts if necessary. More...
 
void ksceKernelSpinlockLowLock (SceKernelSpinlock *lock)
 Acquire a spinlock. More...
 
int ksceKernelSpinlockLowTrylock (SceKernelSpinlock *lock)
 Attempt to acquire a spinlock. More...
 
void ksceKernelSpinlockLowUnlock (SceKernelSpinlock *lock)
 Release a previously acquired spinlock. More...
 
SceKernelIntrStatus ksceKernelSpinlockLowLockCpuSuspendIntr (SceKernelSpinlock *lock)
 Acquire a spinlock and suspend interrupts if necessary. More...
 
SceKernelIntrStatus ksceKernelSpinlockLowTrylockCpuSuspendIntr (SceKernelSpinlock *lock)
 Attempt to acquire a spinlock and suspend interrupts if necessary. More...
 
void ksceKernelSpinlockLowUnlockCpuResumeIntr (SceKernelSpinlock *lock, SceKernelIntrStatus intr_status)
 Release a previously acquired spinlock and resume interrupts if necessary. More...
 
int ksceKernelCpuId (void)
 Returns the CPU ID of the calling processor. More...
 
SceKernelIntrStatus ksceKernelCpuSuspendIntr (void)
 Suspend intr of calling processor. More...
 
SceKernelIntrStatus ksceKernelCpuResumeIntr (SceKernelIntrStatus prev_state)
 Suspend intr of calling processor. More...
 
void ksceKernelGetVmaccessRange (SceUIntPtr *pRangeStart, SceUIntPtr *pRangeEnd)
 
void ksceKernelCpuBranchPredictorInvalidateAll (void)
 
void ksceKernelCpuBranchPredictorInvalidateAllIS (void)
 
SceUInt8 ksceKernelCpuGetCONTEXTIDR (void)
 
void ksceKernelCpuUpdateSCTLR (void)
 
SceBool ksceKernelIsUncacheAddressInTmpFsGame (void *address)
 

Macros

#define ENTER_SYSCALL(state)
 Call this when entering a syscall. More...
 
#define EXIT_SYSCALL(state)
 Call this when exiting a syscall. More...
 

Data Structure Documentation

◆ SceCorelockContext

struct SceCorelockContext
Data Fields
int lock
int16_t core_count
int16_t last_wait_core

Macro Definition Documentation

◆ ENTER_SYSCALL

#define ENTER_SYSCALL (   state)
Value:
do { \
asm volatile ("mrc p15, 0, %0, c13, c0, 3" : "=r" (state)); \
asm volatile ("mcr p15, 0, %0, c13, c0, 3" :: "r" (state << 16) : "memory"); \
} while(0)

Call this when entering a syscall.

Parameters
stateThe state

◆ EXIT_SYSCALL

#define EXIT_SYSCALL (   state)
Value:
do { \
asm volatile ("mcr p15, 0, %0, c13, c0, 3" :: "r" (state) : "memory"); \
} while (0)

Call this when exiting a syscall.

Parameters
stateThe state

Function Documentation

◆ ksceKernelAtomicAdd32AndGet64InHiLoRange()

SceInt32 ksceKernelAtomicAdd32AndGet64InHiLoRange ( SceUInt64 val,
SceInt32  add_val,
SceInt32  limit 
)

◆ ksceKernelAtomicAdd32AndGet64InRange()

SceInt32 ksceKernelAtomicAdd32AndGet64InRange ( SceUInt64 val,
SceInt32  add_val,
SceInt32  limit 
)

◆ ksceKernelAtomicAddAndGetPositive32InRange()

SceInt32 ksceKernelAtomicAddAndGetPositive32InRange ( SceInt32 val,
SceInt32  add_val,
SceInt32  limit 
)

◆ ksceKernelAtomicDecIfLowPositive32()

SceInt32 ksceKernelAtomicDecIfLowPositive32 ( SceInt32 addr)

◆ ksceKernelAtomicGet32AndSet64()

SceInt32 ksceKernelAtomicGet32AndSet64 ( SceUInt64 result,
SceInt32  src 
)

◆ ksceKernelAtomicGet32AndSet64_2()

SceInt32 ksceKernelAtomicGet32AndSet64_2 ( SceUInt64 result,
SceInt32  src 
)

◆ ksceKernelAtomicIncrementHighwaterCounter()

SceUInt32 ksceKernelAtomicIncrementHighwaterCounter ( SceUInt32 counter)

◆ ksceKernelAtomicLimit64()

SceInt32 ksceKernelAtomicLimit64 ( SceUInt64 result,
SceInt32  limit 
)

◆ ksceKernelAtomicSubIfGreater64()

SceInt32 ksceKernelAtomicSubIfGreater64 ( SceUInt64 a1,
SceUInt32  a2 
)

◆ ksceKernelAtomicSet8()

void ksceKernelAtomicSet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicSet16()

void ksceKernelAtomicSet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicSet32()

void ksceKernelAtomicSet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicSet64()

void ksceKernelAtomicSet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicCompareAndSet8()

SceInt8 ksceKernelAtomicCompareAndSet8 ( SceInt8 store,
SceInt8  value,
SceInt8  new_value 
)

◆ ksceKernelAtomicCompareAndSet16()

SceInt16 ksceKernelAtomicCompareAndSet16 ( SceInt16 store,
SceInt16  value,
SceInt16  new_value 
)

◆ ksceKernelAtomicCompareAndSet32()

SceInt32 ksceKernelAtomicCompareAndSet32 ( SceInt32 store,
SceInt32  value,
SceInt32  new_value 
)

◆ ksceKernelAtomicCompareAndSet64()

SceInt64 ksceKernelAtomicCompareAndSet64 ( SceInt64 store,
SceInt64  value,
SceInt64  new_value 
)

◆ ksceKernelAtomicAddAndGet8()

SceInt8 ksceKernelAtomicAddAndGet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicAddAndGet16()

SceInt16 ksceKernelAtomicAddAndGet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicAddAndGet32()

SceInt32 ksceKernelAtomicAddAndGet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicAddAndGet64()

SceInt64 ksceKernelAtomicAddAndGet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicAddUnless8()

SceBool ksceKernelAtomicAddUnless8 ( SceInt8 store,
SceInt8  value,
SceInt8  cmpv 
)

◆ ksceKernelAtomicAddUnless16()

SceBool ksceKernelAtomicAddUnless16 ( SceInt16 store,
SceInt16  value,
SceInt16  cmpv 
)

◆ ksceKernelAtomicAddUnless32()

SceBool ksceKernelAtomicAddUnless32 ( SceInt32 store,
SceInt32  value,
SceInt32  cmpv 
)

◆ ksceKernelAtomicAddUnless64()

SceBool ksceKernelAtomicAddUnless64 ( SceInt64 store,
SceInt64  value,
SceInt64  cmpv 
)

◆ ksceKernelAtomicSubAndGet8()

SceInt8 ksceKernelAtomicSubAndGet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicSubAndGet16()

SceInt16 ksceKernelAtomicSubAndGet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicSubAndGet32()

SceInt32 ksceKernelAtomicSubAndGet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicSubAndGet64()

SceInt64 ksceKernelAtomicSubAndGet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicAndAndGet8()

SceInt8 ksceKernelAtomicAndAndGet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicAndAndGet16()

SceInt16 ksceKernelAtomicAndAndGet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicAndAndGet32()

SceInt32 ksceKernelAtomicAndAndGet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicAndAndGet64()

SceInt64 ksceKernelAtomicAndAndGet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicOrAndGet8()

SceInt8 ksceKernelAtomicOrAndGet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicOrAndGet16()

SceInt16 ksceKernelAtomicOrAndGet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicOrAndGet32()

SceInt32 ksceKernelAtomicOrAndGet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicOrAndGet64()

SceInt64 ksceKernelAtomicOrAndGet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicXorAndGet8()

SceInt8 ksceKernelAtomicXorAndGet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicXorAndGet16()

SceInt16 ksceKernelAtomicXorAndGet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicXorAndGet32()

SceInt32 ksceKernelAtomicXorAndGet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicXorAndGet64()

SceInt64 ksceKernelAtomicXorAndGet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicClearAndGet8()

SceInt8 ksceKernelAtomicClearAndGet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicClearAndGet16()

SceInt16 ksceKernelAtomicClearAndGet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicClearAndGet32()

SceInt32 ksceKernelAtomicClearAndGet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicClearAndGet64()

SceInt64 ksceKernelAtomicClearAndGet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndSet8()

SceInt8 ksceKernelAtomicGetAndSet8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndSet16()

SceInt16 ksceKernelAtomicGetAndSet16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndSet32()

SceInt32 ksceKernelAtomicGetAndSet32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndSet64()

SceInt64 ksceKernelAtomicGetAndSet64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndAdd8()

SceInt8 ksceKernelAtomicGetAndAdd8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndAdd16()

SceInt16 ksceKernelAtomicGetAndAdd16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndAdd32()

SceInt32 ksceKernelAtomicGetAndAdd32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndAdd64()

SceInt64 ksceKernelAtomicGetAndAdd64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndSub8()

SceInt8 ksceKernelAtomicGetAndSub8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndSub16()

SceInt16 ksceKernelAtomicGetAndSub16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndSub32()

SceInt32 ksceKernelAtomicGetAndSub32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndSub64()

SceInt64 ksceKernelAtomicGetAndSub64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndAnd8()

SceInt8 ksceKernelAtomicGetAndAnd8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndAnd16()

SceInt16 ksceKernelAtomicGetAndAnd16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndAnd32()

SceInt32 ksceKernelAtomicGetAndAnd32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndAnd64()

SceInt64 ksceKernelAtomicGetAndAnd64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndOr8()

SceInt8 ksceKernelAtomicGetAndOr8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndOr16()

SceInt16 ksceKernelAtomicGetAndOr16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndOr32()

SceInt32 ksceKernelAtomicGetAndOr32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndOr64()

SceInt64 ksceKernelAtomicGetAndOr64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndXor8()

SceInt8 ksceKernelAtomicGetAndXor8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndXor16()

SceInt16 ksceKernelAtomicGetAndXor16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndXor32()

SceInt32 ksceKernelAtomicGetAndXor32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndXor64()

SceInt64 ksceKernelAtomicGetAndXor64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicGetAndClear8()

SceInt8 ksceKernelAtomicGetAndClear8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicGetAndClear16()

SceInt16 ksceKernelAtomicGetAndClear16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicGetAndClear32()

SceInt32 ksceKernelAtomicGetAndClear32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicGetAndClear64()

SceInt64 ksceKernelAtomicGetAndClear64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicClearMask8()

void ksceKernelAtomicClearMask8 ( SceInt8 store,
SceInt8  value 
)

◆ ksceKernelAtomicClearMask16()

void ksceKernelAtomicClearMask16 ( SceInt16 store,
SceInt16  value 
)

◆ ksceKernelAtomicClearMask32()

void ksceKernelAtomicClearMask32 ( SceInt32 store,
SceInt32  value 
)

◆ ksceKernelAtomicClearMask64()

void ksceKernelAtomicClearMask64 ( SceInt64 store,
SceInt64  value 
)

◆ ksceKernelAtomicDecIfPositive8()

SceInt8 ksceKernelAtomicDecIfPositive8 ( SceInt8 store)

◆ ksceKernelAtomicDecIfPositive16()

SceInt16 ksceKernelAtomicDecIfPositive16 ( SceInt16 store)

◆ ksceKernelAtomicDecIfPositive32()

SceInt32 ksceKernelAtomicDecIfPositive32 ( SceInt32 store)

◆ ksceKernelAtomicDecIfPositive64()

SceInt64 ksceKernelAtomicDecIfPositive64 ( SceInt64 store)

◆ ksceKernelDcacheCleanInvalidateRange()

void ksceKernelDcacheCleanInvalidateRange ( void *  start,
unsigned int  size 
)

The clean and invalidate a range the L1 dcache and L2.

Parameters
[in]startThe pointer for clean and invalidate start. value is should be aligned by 0x40.
[in]sizeThe clean and invalidate size. value is should be aligned by 0x40.

◆ ksceKernelDcacheCleanInvalidateRangeForL1WBWA()

void ksceKernelDcacheCleanInvalidateRangeForL1WBWA ( void *  start,
unsigned int  size 
)

The clean and invalidate a range the L1 dcache.

Parameters
[in]startThe pointer for clean and invalidate start. value is should be aligned by 0x40.
[in]sizeThe clean and invalidate size. value is should be aligned by 0x40.

◆ ksceKernelDcacheCleanRange()

void ksceKernelDcacheCleanRange ( void *  start,
unsigned int  size 
)

The clean a range the L1 dcache and L2.

Parameters
[in]startThe pointer for clean start. value is should be aligned by 0x20.
[in]sizeThe clean size. value is should be aligned by 0x20.

◆ ksceKernelDcacheCleanRangeForL1WBWA()

void ksceKernelDcacheCleanRangeForL1WBWA ( void *  start,
unsigned int  size 
)

The clean a range the L1 dcache.

Parameters
[in]startThe pointer for clean start. value is should be aligned by 0x20.
[in]sizeThe clean size. value is should be aligned by 0x20.

◆ ksceKernelDcacheInvalidateRange()

void ksceKernelDcacheInvalidateRange ( void *  start,
unsigned int  size 
)

The invalidate a range the L1 dcache and L2.

Parameters
[in]startThe pointer for invalidate start. value is should be aligned by 0x40.
[in]sizeThe invalidate size. value is should be aligned by 0x40.

◆ ksceKernelDcacheInvalidateRangeForL1WBWA()

void ksceKernelDcacheInvalidateRangeForL1WBWA ( void *  start,
unsigned int  size 
)

The invalidate a range the L1 dcache.

Parameters
[in]startThe pointer for invalidate start. value is should be aligned by 0x40.
[in]sizeThe invalidate size. value is should be aligned by 0x40.

◆ ksceKernelIcacheInvalidateRange()

void ksceKernelIcacheInvalidateRange ( void *  start,
unsigned int  size 
)

The invalidate a range the L1 icache and L2.

Parameters
[in]startThe pointer for invalidate start. value is should be aligned by 0x40.
[in]sizeThe invalidate size. value is should be aligned by 0x40.

◆ ksceKernelL1DcacheClean()

void ksceKernelL1DcacheClean ( void *  start)

The clean a one line the L1 icache.

Parameters
[in]startThe pointer for clean start.

◆ ksceKernelL1DcacheCleanRange()

void ksceKernelL1DcacheCleanRange ( void *  start,
unsigned int  size 
)

The clean a range the L1 dcache.

Parameters
[in]startThe pointer for clean start.
[in]sizeThe clean size.

◆ ksceKernelL1DcacheCleanAll()

void ksceKernelL1DcacheCleanAll ( void  )

The clean all the L1 dcache.

◆ ksceKernelL1DcacheCleanInvalidate()

void ksceKernelL1DcacheCleanInvalidate ( void *  start)

The invalidate a one line the L1 icache.

Parameters
[in]startThe pointer for invalidate start.

◆ ksceKernelL1DcacheCleanInvalidateRange()

void ksceKernelL1DcacheCleanInvalidateRange ( void *  start,
unsigned int  size 
)

The clean and invalidate a range the L1 dcache.

Parameters
[in]startThe pointer for clean and invalidate start.
[in]sizeThe clean and invalidate size.

◆ ksceKernelL1DcacheCleanInvalidateAll()

void ksceKernelL1DcacheCleanInvalidateAll ( void  )

The clean and invalidate all the L1 dcache.

◆ ksceKernelL1DcacheInvalidate()

void ksceKernelL1DcacheInvalidate ( void *  start)

The invalidate a one line the L1 dcache.

Parameters
[in]startThe pointer for invalidate start.

◆ ksceKernelL1DcacheInvalidateRange()

void ksceKernelL1DcacheInvalidateRange ( void *  start,
unsigned int  size 
)

The invalidate a range the L1 dcache.

Parameters
[in]startThe pointer for invalidate start.
[in]sizeThe invalidate size.

◆ ksceKernelL1DcacheInvalidateAll()

void ksceKernelL1DcacheInvalidateAll ( void  )

The invalidate all the L1 dcache.

◆ ksceKernelL1IcacheInvalidateRange()

void ksceKernelL1IcacheInvalidateRange ( void *  start,
unsigned int  size 
)

The invalidate a range the L1 icache.

Parameters
[in]startThe pointer for invalidate start.
[in]sizeThe invalidate size.

◆ ksceKernelL1IcacheInvalidateEntire()

void ksceKernelL1IcacheInvalidateEntire ( void  )

The invalidate entire the L1 icache.

◆ ksceKernelL1IcacheInvalidateEntireAllCore()

void ksceKernelL1IcacheInvalidateEntireAllCore ( void  )

The invalidate entire the L1 icache of all cores.

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( ,
SceCorelockContext   
)

◆ ksceKernelCorelockInitialize()

void ksceKernelCorelockInitialize ( SceCorelockContext ctx)

◆ ksceKernelCorelockLock()

void ksceKernelCorelockLock ( SceCorelockContext ctx,
SceUInt32  core 
)

◆ ksceKernelCorelockUnlock()

void ksceKernelCorelockUnlock ( SceCorelockContext ctx)

◆ ksceKernelMMUGetMemoryType()

int ksceKernelMMUGetMemoryType ( void *  vaddr)

◆ ksceKernelMMUVAtoPA()

int ksceKernelMMUVAtoPA ( void *  va,
SceUIntPtr pa 
)

◆ ksceKernelMMUVAtoPAWithMode()

int ksceKernelMMUVAtoPAWithMode ( int  mode,
void *  va,
SceUIntPtr pa 
)

◆ ksceKernelPleFlushRequest()

void ksceKernelPleFlushRequest ( void  )

◆ ksceKernelRWSpinlockLowReadLock()

void ksceKernelRWSpinlockLowReadLock ( SceKernelRWSpinlock lock)

Acquire a RWSpinlock for reading.

Parameters
[in]lockRWSpinlock to acquire
Note
It is forbidden to write to data protected by the spinlock after acquiring it with this function.

◆ ksceKernelRWSpinlockLowTryReadLock()

int ksceKernelRWSpinlockLowTryReadLock ( SceKernelRWSpinlock lock)

Attempt to acquire a RWSpinlock for reading.

Parameters
[in]lockSpinlock to acquire
Return values
SCE_OKif the spinlock is acquired
<0if the spinlock could not be acquired
Note
It is forbidden to write to data protected by the spinlock after acquiring it with this function.

◆ ksceKernelRWSpinlockLowReadUnlock()

void ksceKernelRWSpinlockLowReadUnlock ( SceKernelRWSpinlock lock)

Unlock a RWSpinlock previously acquired for reading.

Parameters
[in]lockRWSpinlock to release

◆ ksceKernelRWSpinlockLowReadLockCpuSuspendIntr()

SceKernelIntrStatus ksceKernelRWSpinlockLowReadLockCpuSuspendIntr ( SceKernelRWSpinlock lock)

Acquire a RWSpinlock for reading and suspend interrupts if necessary.

Parameters
[in]lockRWSpinlock to acquire
Returns
An opaque value to be used during the call to ksceKernelRWSpinlockLowReadUnlockCpuResumeIntr.
Note
It is forbidden to write to data protected by the spinlock after acquiring it with this function.

◆ ksceKernelRWSpinlockLowTryReadLockCpuSuspendIntr()

SceKernelIntrStatus ksceKernelRWSpinlockLowTryReadLockCpuSuspendIntr ( SceKernelRWSpinlock lock)

Attempt to acquire a RWSpinlock for reading and suspend interrupts if necessary.

Parameters
[in]lockSpinlock to acquire
Return values
>=0if the spinlock is acquired - opaque value describing the interrupt state
<0if the spinlock could not be acquired
Note
Interrupts are only suspended if the acquisition of the spinlock succeeds
It is forbidden to write to data protected by the spinlock after acquiring it with this function.

◆ ksceKernelRWSpinlockLowReadUnlockCpuResumeIntr()

void ksceKernelRWSpinlockLowReadUnlockCpuResumeIntr ( SceKernelRWSpinlock lock,
SceKernelIntrStatus  intr_status 
)

Release a RWSpinlock previously acquired for reading and resume interrupts if necessary.

Parameters
[in]lockRWSpinlock to release
[in]intr_statusStatus value obtained from ksceKernelRWSpinlockLowReadLockCpuSuspendIntr/ksceKernelRWSpinlockLowTryReadLockCpuSuspendIntr.
Note
This function resumes interrupts only if they were enabled before the call to ksceKernelRWSpinlockLowReadLockCpuSuspendIntr/ksceKernelRWSpinlockLowTryReadLockCpuSuspendIntr.

◆ ksceKernelRWSpinlockLowWriteLock()

void ksceKernelRWSpinlockLowWriteLock ( SceKernelRWSpinlock lock)

Acquire a RWSpinlock for writing.

Parameters
[in]lockRWSpinlock to acquire

◆ ksceKernelRWSpinlockLowTryWriteLock()

int ksceKernelRWSpinlockLowTryWriteLock ( SceKernelRWSpinlock lock)

Attempt to acquire a RWSpinlock for writing.

Parameters
[in]lockSpinlock to acquire
Return values
SCE_OKif the spinlock is acquired
<0if the spinlock could not be acquired

◆ ksceKernelRWSpinlockLowWriteUnlock()

void ksceKernelRWSpinlockLowWriteUnlock ( SceKernelRWSpinlock lock)

Unlock a RWSpinlock previously acquired for writing.

Parameters
[in]lockRWSpinlock to release

◆ ksceKernelRWSpinlockLowWriteLockCpuSuspendIntr()

SceKernelIntrStatus ksceKernelRWSpinlockLowWriteLockCpuSuspendIntr ( SceKernelRWSpinlock lock)

Acquire a RWSpinlock for writing and suspend interrupts if necessary.

Parameters
[in]lockRWSpinlock to acquire
Returns
An opaque value to be used during the call to ksceKernelRWSpinlockLowWriteUnlockCpuResumeIntr.

◆ ksceKernelRWSpinlockLowTryWriteLockCpuSuspendIntr()

SceKernelIntrStatus ksceKernelRWSpinlockLowTryWriteLockCpuSuspendIntr ( SceKernelRWSpinlock lock)

Attempt to acquire a RWSpinlock for writing and suspend interrupts if necessary.

Parameters
[in]lockSpinlock to acquire
Return values
>=0if the spinlock is acquired - opaque value describing the interrupt state
<0if the spinlock could not be acquired
Note
Interrupts are only suspended if the acquisition of the spinlock succeeds

◆ ksceKernelRWSpinlockLowWriteUnlockCpuResumeIntr()

void ksceKernelRWSpinlockLowWriteUnlockCpuResumeIntr ( SceKernelRWSpinlock lock,
SceKernelIntrStatus  intr_status 
)

Release a RWSpinlock acquired for writing and resume interrupts if necessary.

Parameters
[in]lockRWSpinlock to release
[in]intr_statusStatus value obtained from ksceKernelRWSpinlockLowWriteLockCpuSuspendIntr/ksceKernelRWSpinlockLowTryWriteLockCpuSuspendIntr.
Note
This function resumes interrupts only if they were enabled before the call to ksceKernelSpinlockLowLockCpuSuspendIntr/ksceKernelRWSpinlockLowTryWriteLockCpuSuspendIntr.

◆ ksceKernelSpinlockLowLock()

void ksceKernelSpinlockLowLock ( SceKernelSpinlock lock)

Acquire a spinlock.

Parameters
[in]lockSpinlock to acquire

◆ ksceKernelSpinlockLowTrylock()

int ksceKernelSpinlockLowTrylock ( SceKernelSpinlock lock)

Attempt to acquire a spinlock.

Parameters
[in]lockSpinlock to acquire
Return values
SCE_OKif the spinlock is acquired
<0if the spinlock could not be acquired

◆ ksceKernelSpinlockLowUnlock()

void ksceKernelSpinlockLowUnlock ( SceKernelSpinlock lock)

Release a previously acquired spinlock.

Parameters
[in]lockSpinlock to release

◆ ksceKernelSpinlockLowLockCpuSuspendIntr()

SceKernelIntrStatus ksceKernelSpinlockLowLockCpuSuspendIntr ( SceKernelSpinlock lock)

Acquire a spinlock and suspend interrupts if necessary.

Parameters
[in]lockSpinlock to acquire
Returns
An opaque value to be used during the call to ksceKernelSpinlockLowUnlockCpuResumeIntr.

◆ ksceKernelSpinlockLowTrylockCpuSuspendIntr()

SceKernelIntrStatus ksceKernelSpinlockLowTrylockCpuSuspendIntr ( SceKernelSpinlock lock)

Attempt to acquire a spinlock and suspend interrupts if necessary.

Parameters
[in]lockSpinlock to acquire
Return values
>=0if the spinlock is acquired - opaque value describing the interrupt state
<0if the spinlock could not be acquired
Note
Interrupts are only suspended if the acquisition of the spinlock succeeds

◆ ksceKernelSpinlockLowUnlockCpuResumeIntr()

void ksceKernelSpinlockLowUnlockCpuResumeIntr ( SceKernelSpinlock lock,
SceKernelIntrStatus  intr_status 
)

Release a previously acquired spinlock and resume interrupts if necessary.

Parameters
[in]lockSpinlock to release
[in]intr_statusStatus value obtained from ksceKernelSpinlockLowLockCpuSuspendIntr/::ksceKernelSpinlockLowTryLockCpuSuspendIntr.
Note
This function resumes interrupts only if they were enabled before the call to ksceKernelSpinlockLowLockCpuSuspendIntr/::ksceKernelSpinlockLowTryLockCpuSuspendIntr.

◆ ksceKernelCpuId()

int ksceKernelCpuId ( void  )

Returns the CPU ID of the calling processor.

Returns
The CPU ID

◆ ksceKernelCpuSuspendIntr()

SceKernelIntrStatus ksceKernelCpuSuspendIntr ( void  )

Suspend intr of calling processor.

Returns
The prev intr status

◆ ksceKernelCpuResumeIntr()

SceKernelIntrStatus ksceKernelCpuResumeIntr ( SceKernelIntrStatus  prev_state)

Suspend intr of calling processor.

Parameters
[in]prev_stateThe prev status
Returns
The prev intr status

◆ ksceKernelGetVmaccessRange()

void ksceKernelGetVmaccessRange ( SceUIntPtr pRangeStart,
SceUIntPtr pRangeEnd 
)

◆ ksceKernelCpuBranchPredictorInvalidateAll()

void ksceKernelCpuBranchPredictorInvalidateAll ( void  )

◆ ksceKernelCpuBranchPredictorInvalidateAllIS()

void ksceKernelCpuBranchPredictorInvalidateAllIS ( void  )

◆ ksceKernelCpuGetCONTEXTIDR()

SceUInt8 ksceKernelCpuGetCONTEXTIDR ( void  )

◆ ksceKernelCpuUpdateSCTLR()

void ksceKernelCpuUpdateSCTLR ( void  )

◆ ksceKernelIsUncacheAddressInTmpFsGame()

SceBool ksceKernelIsUncacheAddressInTmpFsGame ( void *  address)