From dfa18684897c33b28a617ef32f22b3959f5bb590 Mon Sep 17 00:00:00 2001 From: Thomas Cherryhomes Date: Fri, 31 Oct 2025 18:39:16 -0500 Subject: [PATCH] [apple2][cpm] move cpmTask to CPU0. It works again. --- lib/device/iwm/cpm.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/device/iwm/cpm.cpp b/lib/device/iwm/cpm.cpp index f71fb9509..4ec8c90be 100644 --- a/lib/device/iwm/cpm.cpp +++ b/lib/device/iwm/cpm.cpp @@ -26,7 +26,7 @@ #include "../runcpm/ccp.h" // ccp.h - Defines a simple internal CCP #endif -#define CPM_TASK_PRIORITY 20 +#define CPM_TASK_PRIORITY 10 static void cpmTask(void *arg) { @@ -41,9 +41,6 @@ static void cpmTask(void *arg) memset(newname, 0, sizeof(newname)); memset(fcbname, 0, sizeof(fcbname)); memset(pattern, 0, sizeof(pattern)); -#ifdef ESP_PLATFORM // OS - vTaskDelay(100); -#endif _puts(CCPHEAD); _PatchCPM(); _ccp(); @@ -106,7 +103,7 @@ void iwmCPM::iwm_open(iwm_decoded_cmd_t cmd) if (cpmTaskHandle == NULL) { Debug_printf("!!! STARTING CP/M TASK!!!\n"); - xTaskCreatePinnedToCore(cpmTask, "cpmtask", 32768, NULL, CPM_TASK_PRIORITY, &cpmTaskHandle, 1); + xTaskCreatePinnedToCore(cpmTask, "cpmtask", 4096, this, CPM_TASK_PRIORITY, &cpmTaskHandle, 0); } } #endif @@ -269,7 +266,7 @@ void iwmCPM::iwm_ctrl(iwm_decoded_cmd_t cmd) { break; } - xTaskCreatePinnedToCore(cpmTask, "cpmtask", 32768, NULL, CPM_TASK_PRIORITY, &cpmTaskHandle, 1); + xTaskCreatePinnedToCore(cpmTask, "cpmtask", 4096, this, CPM_TASK_PRIORITY, &cpmTaskHandle, 0); #endif } break;