Skip to content

Commit

Permalink
Add SceKernelMemBlockType Typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicMastr authored and d3m3vilurr committed Apr 20, 2022
1 parent 2235b4c commit d7786df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/psp2/kernel/sysmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ typedef struct SceKernelMemBlockInfo {
SceSize mappedSize;
int memoryType;
SceUInt32 access;
SceUInt32 type;
SceKernelMemBlockType type;
} SceKernelMemBlockInfo;

typedef enum SceKernelMemoryAccessType {
Expand All @@ -70,7 +70,7 @@ typedef enum SceKernelMemoryType {
*
* @return SceUID of the memory block on success, < 0 on error.
*/
SceUID sceKernelAllocMemBlock(const char *name, SceUInt32 type, SceSize size, SceKernelAllocMemBlockOpt *opt);
SceUID sceKernelAllocMemBlock(const char *name, SceKernelMemBlockType type, SceSize size, SceKernelAllocMemBlockOpt *opt);

/**
* Frees new memory block
Expand Down
1 change: 1 addition & 0 deletions include/psp2common/kernel/sysmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
extern "C" {
#endif

typedef SceUInt32 SceKernelMemBlockType;

/*
* User/Kernel shared memtypes
Expand Down
4 changes: 2 additions & 2 deletions include/psp2kern/kernel/sysmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ typedef enum SceKernelModel {
*
* @return SceUID of the memory block on success, < 0 on error.
*/
SceUID ksceKernelAllocMemBlock(const char *name, SceUInt32 type, SceSize size, SceKernelAllocMemBlockKernelOpt *opt);
SceUID ksceKernelAllocMemBlock(const char *name, SceKernelMemBlockType type, SceSize size, SceKernelAllocMemBlockKernelOpt *opt);

/**
* Frees new memory block
Expand Down Expand Up @@ -142,7 +142,7 @@ SceUID ksceKernelFindMemBlockByAddrForPid(SceUID pid, const void *addr, SceSize
*
* @return 0 on success, < 0 on error.
*/
int ksceKernelRemapBlock(SceUID uid, SceUInt32 type);
int ksceKernelRemapBlock(SceUID uid, SceKernelMemBlockType type);

int ksceKernelMapBlockUserVisible(SceUID uid);

Expand Down

0 comments on commit d7786df

Please sign in to comment.