65 lines
1.2 KiB
C
65 lines
1.2 KiB
C
/*
|
|
*
|
|
* SILICAANDPINA
|
|
*
|
|
* KERNEL < - > USERLAND SceRtc BRIDGE
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <vitasdk.h>
|
|
#include <taihen.h>
|
|
#include "rtc.h"
|
|
|
|
int ksilRtcSetCurrentTick(unsigned int timestamp1,unsigned int timestamp2)
|
|
{
|
|
unsigned int timestamp[2];
|
|
|
|
timestamp[0] = timestamp1;
|
|
timestamp[1] = timestamp2;
|
|
|
|
return ksceRtcSetCurrentTick(timestamp);
|
|
}
|
|
|
|
int ksilRtcSetCurrentNetworkTick(unsigned int timestamp1,unsigned int timestamp2)
|
|
{
|
|
unsigned int timestamp[2];
|
|
|
|
timestamp[0] = timestamp1;
|
|
timestamp[1] = timestamp2;
|
|
|
|
return ksceRtcSetCurrentNetworkTick(timestamp);
|
|
}
|
|
|
|
int ksilRtcSetCurrentSecureTick(unsigned int timestamp1,unsigned int timestamp2)
|
|
{
|
|
unsigned int timestamp[2];
|
|
|
|
timestamp[0] = timestamp1;
|
|
timestamp[1] = timestamp2;
|
|
|
|
return ksceRtcSetCurrentSecureTick(timestamp);
|
|
}
|
|
|
|
int ksilSblPostSsMgrSetCpRtc(unsigned int timestamp)
|
|
{
|
|
return ksceSblPostSsMgrSetCpRtc(timestamp);
|
|
}
|
|
|
|
|
|
|
|
void _start() __attribute__ ((weak, alias ("module_start")));
|
|
int module_start(SceSize argc, const void *args)
|
|
{
|
|
return SCE_KERNEL_START_SUCCESS;
|
|
}
|
|
|
|
int module_stop(SceSize argc, const void *args)
|
|
{
|
|
return SCE_KERNEL_STOP_SUCCESS;
|
|
}
|
|
|
|
|