blob: fd341e336ae53625933a2648efb236e21a44f4a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef _DOLCESDK_PSP2_KERNEL_SYSMEM_MEMBLOCK_H_
#define _DOLCESDK_PSP2_KERNEL_SYSMEM_MEMBLOCK_H_
#include_next <kernel/sysmem/memblock.h>
/** @name sceKernelAllocMemBlockで指定可能なメモリタイプ
*/
/*@{*/
/**
* memory block type for read execute cache allocated on LPDDR2
*/
#define SCE_KERNEL_MEMBLOCK_TYPE_USER_RX 0x0c20d050U
/*@}*/
SCE_CDECL_BEGIN
#if !defined(_LANGUAGE_ASSEMBLY)
typedef struct SceKernelAllocMemBlockOptInternal {
SceSize size;
SceUInt32 attr;
SceSize alignment;
SceUID uidBaseBlock;
const char *strBaseBlockName;
SceUInt32 flags; //! Unknown flags 0x10 or 0x30 for ::sceKernelOpenMemBlock
SceUInt32 reserved[10];
} SceKernelAllocMemBlockOptInternal;
/*----- memory access permission -----*/
/**
* executable memory
*/
#define SCE_KERNEL_MEMORY_ACCESS_X 0x01U
#endif /* !defined(_LANGUAGE_ASSEMBLY) */
SCE_CDECL_END
#endif /* _DOLCESDK_PSP2_KERNEL_SYSMEM_MEMBLOCK_H_ */
|