* f_op debug 1

* f_op debug 2

* f_op debug 3

* f_op debug 4

* f_op debug 5

* f_op_debug fix build

* f_op linking

* remove goto in fopac_create

* fix regressions

* fix regressions

* pr comments

* f_op debug 6

* f_op debug 7

* f_op debug 8

* f_op debug 9

* f_op debug 10

* f_op work, linking, symbols, heap

* regressions 1

* regressions 2

* pr comments
This commit is contained in:
Niklas Bauer
2025-12-30 13:22:38 +01:00
committed by GitHub
parent e77f841d35
commit c3213e0c67
32 changed files with 729 additions and 302 deletions
+5 -9
View File
@@ -717,11 +717,7 @@ JKRExpHeap* mDoExt_getHostIOHeap() {
return HostIOHeap;
}
#if DEBUG
extern u8 lbl_8074C3B9[1];
#endif
static JKRSolidHeap* mDoExt_createSolidHeap(u32 i_size, JKRHeap* i_heap, u32 i_alignment) {
JKRSolidHeap* mDoExt_createSolidHeap(u32 i_size, JKRHeap* i_heap, u32 i_alignment) {
if (i_heap == NULL) {
i_heap = JKRGetCurrentHeap();
}
@@ -729,7 +725,7 @@ static JKRSolidHeap* mDoExt_createSolidHeap(u32 i_size, JKRHeap* i_heap, u32 i_a
JKRSolidHeap* createdHeap;
if (i_size == 0 || i_size == -1) {
#if DEBUG
if (lbl_8074C3B9[0] != 0) {
if (mDoExt::HeapAdjustVerbose != 0) {
OS_REPORT("\x1b[44mmDoExt_createSolidHeap サイズ未設定\n\x1b[m");
OS_REPORT("最大空き容量確保します %08x\n\x1b[m", i_heap->getFreeSize());
}
@@ -749,7 +745,7 @@ static JKRSolidHeap* mDoExt_createSolidHeap(u32 i_size, JKRHeap* i_heap, u32 i_a
if (createdHeap != NULL) {
JKRSetErrorFlag(createdHeap, true);
#if DEBUG
if (lbl_8074C3B9[0] != 0) {
if (mDoExt::HeapAdjustVerbose != 0) {
u32 heapSize = createdHeap->getHeapSize();
OS_REPORT(
"JKRCreateSolidHeap %08x i_size=%08x solidHeapSize=%08x\n",
@@ -841,7 +837,7 @@ u32 mDoExt_adjustSolidHeap(JKRSolidHeap* i_heap) {
u32 actualSize = i_heap->getHeapSize();
#if DEBUG
if (lbl_8074C3B9[0]) {
if (mDoExt::HeapAdjustVerbose) {
// "\x1B[33mSolid heap estimate: %08x actual: %08x\n\x1B[m"
OS_REPORT("\x1B[33mソリッドヒープの見積もり %08x 実際 %08x\n\x1B[m", estimatedSize, actualSize);
@@ -857,7 +853,7 @@ u32 mDoExt_adjustSolidHeap(JKRSolidHeap* i_heap) {
}
}
if (lbl_8074C3B9[0]) {
if (mDoExt::HeapAdjustVerbose) {
OS_REPORT("JKRSolidHeap::adjustSize %08x (%08x bytes)\n", (u32)i_heap, result);
}
#endif