28#define OS_TICK_PERIOD_US 4615
#define __swi_variadic_begin(number)
#define __swi_end(number, func, call)
#define __swi_variadic_end(number, func,...)
#define __swi_begin(number)
void loopback3(void)
Syscall, which is used by the phone OS, swi 3.
void MutexLock(MUTEX *mtx)
Lock mutex.
void * _dlsym(int handle, const char *name)
Get a pointer to the symbol from the previously loaded dynamic object.
int * RamRandSeed()
Get PRNG seed value.
char ** getBaseEnviron()
Get a pointer to a list of environment variables.
void SetCpuClockTempHi(int unk)
Set the CPU frequency to the maximum value.
void LockSched(void)
Lock OS scheduler.
int dlclean_cache()
Call the garbage collector for the loaded dynamic objects.
void MutexCreate(MUTEX *mtx)
Init mutex object.
void SUBPROC(void *callback,...)
Run a callback in the background.
static uint32_t SecToTicks(uint32_t sec)
Converts seconds to OS ticks.
uint8_t GetCPULoad()
Get CPU load.
void loopback4(void)
Syscall, which is used by the phone OS, swi 4.
static uint32_t TicksToUs(uint32_t ticks)
Converts OS ticks to microseconds.
#define OS_TICK_PERIOD_US
Duration of one OS tick in microseconds.
void SetCpuClockLow(int unk)
Set the CPU frequency to the minimum value.
void MutexUnlock(MUTEX *mtx)
Unlock mutex.
int elfclose(void *ex)
Close ELF.
static uint32_t MsToTicks(uint32_t ms)
Converts milliseconds to OS ticks.
int _dlclose(int handle)
Close previously loaded dynamic object.
unsigned long long getCpuUsedTime_if_ena(void)
Get CPU usage monitor value.
void * SHARED_TOP()
Get a pointer to the list of loaded shared libs.
void loopback171(void)
Syscall, which is used by the phone OS, swi 171.
const char * RamLastStoreString()
Current pickoff error string.
void MutexLockEx(MUTEX *mtx, int flag)
Lock mutex.
void * AddrLibrary()
Address of the ElfPack function library.
void loopback0(void)
Syscall, which is used by the phone OS, swi 0.
static uint32_t TicksToMs(uint32_t ticks)
Converts OS ticks to milliseconds.
void kill_data(void *p, void(*func_p)(void *))
Free data without returning to the current function.
void loopback2(void)
Syscall, which is used by the phone OS, swi 2.
uint32_t GetSessionAge(void)
Get phone uptime in the ticks (1 tick=4.615 ms).
const char * _dlerror()
Get a string representation of the last error in _dlopen.
int isnewSGold(void)
Get the platform type.
void * LIB_TOP(void)
Get a pointer to the loaded blib.
void StartCpuUsageCount(void)
Enable CPU usage monitor.
void SetCpuClockHi(int flag)
Set the CPU frequency to the maximum value.
void UnlockSched(void)
Unlock OS scheduler.
const char * GSM_L1_Disable()
Disable GSM L1 layer (NetOff).
static uint32_t TicksToSec(uint32_t ticks)
Converts OS ticks to seconds.
uint8_t GetCPUClock()
Get CPU freq.
static uint32_t UsToTicks(uint32_t us)
Converts microseconds to OS ticks.
uint32_t GetLoaderVersion()
Get ELFLoader version.
int _dlopen(const char *name)
Load the dynamic shared object (.so).
void kill_elf()
Kill current ELF (in background).
void MutexDestroy(MUTEX *mtx)
Destroy mutex (free resources).
void loopback1(void)
Syscall, which is used by the phone OS, swi 1.