Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move sys_crashdump to it's own file and make it a module itself
- Loading branch information
Showing
9 changed files
with
61 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "stdafx.h" | ||
#include "Emu/Cell/PPUModule.h" | ||
|
||
#include "sys_crashdump.h" | ||
|
||
LOG_CHANNEL(sys_crashdump); | ||
|
||
error_code sys_crash_dump_get_user_log_area(u8 index, vm::ptr<sys_crash_dump_log_area_info_t> entry) | ||
{ | ||
sys_crashdump.todo("sys_crash_dump_get_user_log_area(index=%d, entry=*0x%x)", index, entry); | ||
|
||
if (index > SYS_CRASH_DUMP_MAX_LOG_AREA || !entry) | ||
{ | ||
return CELL_EINVAL; | ||
} | ||
|
||
return CELL_OK; | ||
} | ||
|
||
error_code sys_crash_dump_set_user_log_area(u8 index, vm::ptr<sys_crash_dump_log_area_info_t> new_entry) | ||
{ | ||
sys_crashdump.todo("sys_crash_dump_set_user_log_area(index=%d, new_entry=*0x%x)", index, new_entry); | ||
|
||
if (index > SYS_CRASH_DUMP_MAX_LOG_AREA || !new_entry) | ||
{ | ||
return CELL_EINVAL; | ||
} | ||
|
||
return CELL_OK; | ||
} | ||
|
||
DECLARE(ppu_module_manager::sys_crashdump) ("sys_crashdump", []() | ||
{ | ||
REG_FUNC(sys_crashdump, sys_crash_dump_get_user_log_area); | ||
REG_FUNC(sys_crashdump, sys_crash_dump_set_user_log_area); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
|
||
enum | ||
{ | ||
SYS_CRASH_DUMP_MAX_LABEL_SIZE = 16, | ||
SYS_CRASH_DUMP_MAX_LOG_AREA = 127 // not actually defined in CELL | ||
}; | ||
|
||
struct sys_crash_dump_log_area_info_t | ||
{ | ||
char label[SYS_CRASH_DUMP_MAX_LABEL_SIZE]; // 15 + 1 (0 terminated) | ||
vm::ptr<void> addr; | ||
be_t<u64> size; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters