activate.vpk/kern/kern_clockset.c

65 lines
1.2 KiB
C
Raw Normal View History

2018-06-02 12:33:15 +00:00
/*
*
* SILICAANDPINA
*
* KERNEL < - > USERLAND SceRtc BRIDGE
*
*/
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <vitasdk.h>
#include <taihen.h>
2019-08-10 10:42:14 +00:00
#include "rtc.h"
2018-06-02 12:33:15 +00:00
2019-08-10 10:42:14 +00:00
int ksilRtcSetCurrentTick(unsigned int timestamp1,unsigned int timestamp2)
2018-06-02 12:33:15 +00:00
{
unsigned int timestamp[2];
timestamp[0] = timestamp1;
timestamp[1] = timestamp2;
return ksceRtcSetCurrentTick(timestamp);
}
2019-08-10 10:42:14 +00:00
int ksilRtcSetCurrentNetworkTick(unsigned int timestamp1,unsigned int timestamp2)
2018-06-02 12:33:15 +00:00
{
unsigned int timestamp[2];
timestamp[0] = timestamp1;
timestamp[1] = timestamp2;
return ksceRtcSetCurrentNetworkTick(timestamp);
}
2019-08-10 10:42:14 +00:00
int ksilRtcSetCurrentSecureTick(unsigned int timestamp1,unsigned int timestamp2)
2018-06-02 12:33:15 +00:00
{
unsigned int timestamp[2];
timestamp[0] = timestamp1;
timestamp[1] = timestamp2;
return ksceRtcSetCurrentSecureTick(timestamp);
}
2019-08-10 10:42:14 +00:00
int ksilSblPostSsMgrSetCpRtc(unsigned int timestamp)
{
return ksceSblPostSsMgrSetCpRtc(timestamp);
}
2018-06-02 12:33:15 +00:00
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;
}