im trying to do some stuff with a psar and i need to load it & im having trouble with buffers in kernel mode. Every other mode works, vsh, user etc. just not kernel.
here's what im using...or tried using,
Code: Select all
static u8 g_dataPSAR[23*1000*1000] __attribute__((aligned(64)));
static u8 g_dataOut[30*1000*1000] __attribute__((aligned(0x40)));
static u8 *g_dataOut2;
Code: Select all
static u8 g_dataPSAR[23*1024*1024] __attribute__((aligned(64)));
static u8 *g_dataOut;[30*1024*1024] __attribute__((aligned(0x40)));
static u8 *g_dataOut2;
Code: Select all
u8 g_dataPSAR[10*1024*1024] __attribute__((aligned(64)));
u8 g_dataOut[3*1024*1024] __attribute__((aligned(64)));
u8 g_dataOut2[3*1024*1024] __attribute__((aligned(64)));
Code: Select all
u8 g_dataPSAR[23*1024*1024] __attribute__((aligned(64)));
u8 g_dataOut[3*1024*1024] __attribute__((aligned(64)));
u8 g_dataOut2[3*1024*1024] __attribute__((aligned(64)));
Code: Select all
u8 g_dataPSAR[23*1024*1024] __attribute__((aligned(64)));
u8 g_dataOut[30*1024*1024] __attribute__((aligned(64)));
u8 g_dataOut2[3*1024*1024] __attribute__((aligned(64)));
Code: Select all
static u8 g_dataPSAR[20500000] __attribute__((aligned(64)));
static u8 g_dataOut[3000000] __attribute__((aligned(0x40)));
static u8 *g_dataOut2;
then i try this,
Code: Select all
static u8 *g_dataPSAR;
static u8 *g_dataOut;
static u8 *g_dataOut2;
I'm required to use kernel as well because nearly all the functs can't be put in a prx. :s
If you have any idea about what may be wrong (don't say me, don't say me) please tell me.
Once again Cheers,
FX