Merge branch 'main' of https://github.com/Horizon-OC/Horizon-OC
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2023 hanai3Bi
|
* Copyright (c) 2023 hanai3Bi
|
||||||
*
|
*
|
||||||
|
* Copyright (c) B3711
|
||||||
|
*
|
||||||
* Copyright (c) Souldbminer, Lightos_ and Horizon OC Contributors
|
* Copyright (c) Souldbminer, Lightos_ and Horizon OC Contributors
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
@@ -591,7 +593,7 @@ namespace ams::ldr::hoc::pcv::erista {
|
|||||||
/* The correct instructions will always be x0 since the mtcTable pointer is returned. */
|
/* The correct instructions will always be x0 since the mtcTable pointer is returned. */
|
||||||
u32 adrp = *(ptr + GoodAdrpOffset);
|
u32 adrp = *(ptr + GoodAdrpOffset);
|
||||||
R_UNLESS(AsmCompareAdrpNoImm(adrp, MtcAdrpAsm), ldr::ResultInvalidMtcTablePattern());
|
R_UNLESS(AsmCompareAdrpNoImm(adrp, MtcAdrpAsm), ldr::ResultInvalidMtcTablePattern());
|
||||||
|
|
||||||
|
|
||||||
/* Check for the branch instruction above the cbz to ensure we are patching the right location*/
|
/* Check for the branch instruction above the cbz to ensure we are patching the right location*/
|
||||||
u32 bl = *(ptr + GoodBlOffset);
|
u32 bl = *(ptr + GoodBlOffset);
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2023 hanai3Bi
|
* Copyright (c) 2023 hanai3Bi
|
||||||
*
|
*
|
||||||
|
* Copyright (c) B3711
|
||||||
|
*
|
||||||
* Copyright (c) Souldbminer and Horizon OC Contributors
|
* Copyright (c) Souldbminer and Horizon OC Contributors
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
@@ -50,11 +52,10 @@ namespace ams::ldr::hoc::pcv::mariko {
|
|||||||
R_THROW(ldr::ResultInvalidGpuDvfs());
|
R_THROW(ldr::ResultInvalidGpuDvfs());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (C.marikoGpuBootVolt) {
|
||||||
if(C.marikoGpuBootVolt) {
|
PATCH_OFFSET(ptr - 3, C.marikoGpuBootVolt);
|
||||||
PATCH_OFFSET(ptr - 3, C.marikoGpuBootVolt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (C.marikoGpuVmin) {
|
if (C.marikoGpuVmin) {
|
||||||
PATCH_OFFSET(ptr, C.marikoGpuVmin);
|
PATCH_OFFSET(ptr, C.marikoGpuVmin);
|
||||||
PATCH_OFFSET(ptr + 3, C.marikoGpuVmin);
|
PATCH_OFFSET(ptr + 3, C.marikoGpuVmin);
|
||||||
@@ -864,7 +865,7 @@ namespace ams::ldr::hoc::pcv::mariko {
|
|||||||
{ 3133000, { DVB(DvbVolt(1025, 1000, 975)) }, },
|
{ 3133000, { DVB(DvbVolt(1025, 1000, 975)) }, },
|
||||||
{ 3166000, { DVB(DvbVolt(1037, 1012, 987)) }, },
|
{ 3166000, { DVB(DvbVolt(1037, 1012, 987)) }, },
|
||||||
{ 3200000, { DVB(DvbVolt(1050, 1025, 1000)) }, },
|
{ 3200000, { DVB(DvbVolt(1050, 1025, 1000)) }, },
|
||||||
{ ~0u, { }, },
|
{ ~0u, { }, },
|
||||||
};
|
};
|
||||||
#undef DVB
|
#undef DVB
|
||||||
DvbEntry emcDvbTableOc[newEmcList.size()];
|
DvbEntry emcDvbTableOc[newEmcList.size()];
|
||||||
|
|||||||
Reference in New Issue
Block a user