Skip to content

Conversation

@hnanoto
Copy link
Contributor

@hnanoto hnanoto commented Jan 13, 2026

This PR integrates the ClearTaskSwitchBit kernel quirk from OpenCore into Clover and updates the OpenCorePkg submodule to the latest compatible version.

Changes:

  1. Kernel Quirk: Implemented ClearTaskSwitchBit in Config_Quirks.h and Settings.h.
    • This quirk is essential for stability on certain AMD CPUs (e.g., Ryzen) and virtualization scenarios where the Task Switch bit (CR0) must be cleared.
  2. OpenCorePkg Update: Synced the submodule to commit 7140879 (Merge pull request Clover USB 3.0 ports not working (still waiting for root device) #11 from hnanoto/master).
    • Brings in new CPU Definitions (AMD 1Ah) and updated library headers.
  3. CI & Build Fixes:
    • Fixed a macro syntax error in OcConfigurationLib.h (via workflow patch) to allow compilation.
    • Updated GitHub Actions workflow to use --no-recurse-submodules during fetch, fixing build failures related to historical submodule references.

Verification:

  • Build: Compiles successfully with GCC 15.2 on GitHub Actions (CI is Green).
  • Artifacts: Bootloader binary generated successfully.

Please review and merge. Thanks!

@stevezhengshiqi
Copy link
Contributor

Build logs (CloverPackage/mpkg.log, build.log, etc.) should be disregarded. Suggest to add them in .gitignore

@hnanoto
Copy link
Contributor Author

hnanoto commented Jan 14, 2026

Build logs (CloverPackage/mpkg.log, build.log, etc.) should be disregarded. Suggest to add them in .gitignore

Thanks for spotting that! I've removed the logs and updated .gitignore.

@SergeySlice SergeySlice merged commit c3ba059 into CloverHackyColor:master Jan 14, 2026
1 check passed
@stevezhengshiqi
Copy link
Contributor

stevezhengshiqi commented Jan 14, 2026

@hnanoto Thank you for the fix. If feasible, could you also update CloverPackage/CloverV2/EFI/CLOVER/config-sample.plist with the recently updated OpenCore? Also, check if config-sample.plist is coherent with the OpenCore submodule, there might be obsolete quirks, or some quirks are missing.

@hnanoto
Copy link
Contributor Author

hnanoto commented Jan 14, 2026

@stevezhengshiqi Done! Since this PR was merged quickly, I've created a follow-up PR #785 to update config-sample.plist with ClearTaskSwitchBit, DisableIoMapperMapping, and ResizeGpuBars as requested. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants