remove typedef
This commit is contained in:
@@ -58,8 +58,8 @@ namespace ams::ldr {
|
|||||||
namespace ams::ldr::hoc {
|
namespace ams::ldr::hoc {
|
||||||
template<typename Pointer>
|
template<typename Pointer>
|
||||||
struct PatcherEntry {
|
struct PatcherEntry {
|
||||||
using patternFn = bool(*)(Pointer* ptr);
|
using patternFn = bool(*)(Pointer *ptr);
|
||||||
using patcherFn = Result(*)(Pointer* ptr);
|
using patcherFn = Result(*)(Pointer *ptr);
|
||||||
|
|
||||||
const char* description;
|
const char* description;
|
||||||
patcherFn patcher_fn = nullptr;
|
patcherFn patcher_fn = nullptr;
|
||||||
@@ -79,7 +79,7 @@ namespace ams::ldr::hoc {
|
|||||||
|
|
||||||
Result SearchAndApply(Pointer *ptr) {
|
Result SearchAndApply(Pointer *ptr) {
|
||||||
bool searchOk = false;
|
bool searchOk = false;
|
||||||
if (pattern_search_fn) {
|
if (pattern_search_fn), {
|
||||||
if (pattern_search_fn(ptr)) {
|
if (pattern_search_fn(ptr)) {
|
||||||
searchOk = true;
|
searchOk = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ namespace ams::ldr::hoc {
|
|||||||
|
|
||||||
SmcRebootToIramPayload();
|
SmcRebootToIramPayload();
|
||||||
|
|
||||||
while(true){}
|
while(true) { }
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
namespace ams::ldr::hoc::ptm {
|
namespace ams::ldr::hoc::ptm {
|
||||||
|
|
||||||
typedef struct {
|
struct perf_conf_entry {
|
||||||
u32 conf_id;
|
u32 conf_id;
|
||||||
u32 cpu_freq_1; // min-max pair?
|
u32 cpu_freq_1; // min-max pair?
|
||||||
u32 cpu_freq_2;
|
u32 cpu_freq_2;
|
||||||
@@ -31,7 +31,7 @@ namespace ams::ldr::hoc::ptm {
|
|||||||
u32 emc_freq_1;
|
u32 emc_freq_1;
|
||||||
u32 emc_freq_2;
|
u32 emc_freq_2;
|
||||||
u32 padding;
|
u32 padding;
|
||||||
} perf_conf_entry;
|
};
|
||||||
|
|
||||||
constexpr u32 entryCnt = 16;
|
constexpr u32 entryCnt = 16;
|
||||||
constexpr u32 cpuPtmDefault = 1020'000'000;
|
constexpr u32 cpuPtmDefault = 1020'000'000;
|
||||||
|
|||||||
Reference in New Issue
Block a user