~ppsspp/ppsspp/ppsspp_1.3.0

« back to all changes in this revision

Viewing changes to Tools/SaveTool/kernelcall/kernelcall.c

  • Committer: Sérgio Benjamim
  • Date: 2017-01-02 00:12:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20170102001205-cxbta9za203nmjwm
1.3.0 source (from ppsspp_1.3.0-r160.p5.l1762.a165.t83~56~ubuntu16.04.1.tar.xz).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <pspsdk.h>
 
2
#include <pspkernel.h>
 
3
#include <pspidstorage.h>
 
4
#include <pspsysreg.h>
 
5
#include <string.h>
 
6
#include <pspchnnlsv.h>
 
7
#include <stdio.h>
 
8
#include <stdlib.h>
 
9
#include <string.h>
 
10
 
 
11
 
 
12
 
 
13
PSP_MODULE_INFO("kernelcall", 0x1006, 2, 0);
 
14
 
 
15
 
 
16
u64 sceSysreg_driver_4F46EEDE();
 
17
 
 
18
 
 
19
u64 GetFuseId()
 
20
{
 
21
        u64 fuseId = sceSysreg_driver_4F46EEDE();
 
22
        return fuseId;
 
23
}
 
24
 
 
25
int sceChnnlsv_E7833020_(pspChnnlsvContext1 *ctx, int mode)
 
26
{
 
27
        int k1 = pspSdkSetK1(0);
 
28
        int res = sceChnnlsv_E7833020(ctx,mode);
 
29
 
 
30
        pspSdkSetK1(k1);
 
31
        return res;
 
32
}
 
33
 
 
34
int sceChnnlsv_F21A1FCA_(pspChnnlsvContext1 *ctx, unsigned char *data, int len)
 
35
{
 
36
        int k1 = pspSdkSetK1(0);
 
37
        int res = sceChnnlsv_F21A1FCA(ctx,data,len);
 
38
        pspSdkSetK1(k1);
 
39
        return res;
 
40
}
 
41
 
 
42
int sceChnnlsv_C4C494F8_(pspChnnlsvContext1 *ctx, 
 
43
                        unsigned char *hash, unsigned char *cryptkey)
 
44
{
 
45
        int k1 = pspSdkSetK1(0);
 
46
        int res = sceChnnlsv_C4C494F8(ctx,hash,cryptkey);
 
47
        pspSdkSetK1(k1);
 
48
        return res;
 
49
}
 
50
 
 
51
int sceChnnlsv_ABFDFC8B_(pspChnnlsvContext2 *ctx, int mode1, int mode2,
 
52
                        unsigned char *hashkey, unsigned char *cipherkey)
 
53
{
 
54
        int k1 = pspSdkSetK1(0);
 
55
        int res = sceChnnlsv_ABFDFC8B(ctx,mode1,mode2,hashkey,cipherkey);
 
56
        pspSdkSetK1(k1);
 
57
        return res;
 
58
}
 
59
 
 
60
int sceChnnlsv_850A7FA1_(pspChnnlsvContext2 *ctx, unsigned char *data, int len)
 
61
{
 
62
        int k1 = pspSdkSetK1(0);
 
63
        int res = sceChnnlsv_850A7FA1(ctx,data,len);
 
64
        pspSdkSetK1(k1);
 
65
        return res;
 
66
}
 
67
 
 
68
int sceChnnlsv_21BE78B4_(pspChnnlsvContext2 *ctx)
 
69
{
 
70
        int k1 = pspSdkSetK1(0);
 
71
        int res = sceChnnlsv_21BE78B4(ctx);
 
72
        pspSdkSetK1(k1);
 
73
        return res;
 
74
}
 
75
 
 
76
int module_start(SceSize args, void *argp)
 
77
{
 
78
        return 0;
 
79
}
 
80
 
 
81
int module_stop()
 
82
{
 
83
        return 0;
 
84