Integrate CherryUSB stack and fix 64-bit EHCI issues#7
Conversation
- Implement functional USB OSAL for RTC64 kernel. - Fix 64-bit pointer truncation in CherryUSB EHCI driver. - Integrate HID, MSC, CDC, Audio, and Video classes into the kernel. - Prune CherryUSB stack to essential components (class, common, core, port/ehci). - Resolve all compiler warnings and implement missing libc/math dependencies. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Pruned external/CherryUSB to essential folders: class, common, core, port/ehci. - Fixed 64-bit address translation in EHCI driver (HHDM support). - Implemented functional, interrupt-safe USB OSAL in kernel/usb_osal.c. - Integrated HID, MSC, and CDC Host classes into the build. - Resolved all compiler warnings and implemented missing libc/math dependencies. - Updated Makefile and usb_config.h for the integrated components. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
This PR fully integrates the CherryUSB stack into the Sovereign RTC64 kernel.
Key changes:
external/CherryUSB/port/ehci/usb_hc_ehci.hand associated source files to handle high-half kernel virtual addresses (HHDM) correctly, preventing pointer truncation when communicating with hardware.kernel/usb_osal.cwith functional bare-metal implementations for critical sections (interrupt-safe), semaphores, mutexes, and memory management using the kernel's TLSF allocator.Makefileandkernel/usb_config.hto include and configure USB Host classes for HID (keyboard/mouse), MSC (storage), CDC (network), Audio, and Video.external/CherryUSBdirectory to maintain Git hygiene and ensure only required source files are present, as per architectural guidelines.kernel/uac_policy.cand resolved missing dependencies likestrtoul,strncpy, androundfin the kernel's libc/math glue layers.The resulting kernel compiles and links with 0 warnings and 0 errors.
PR created automatically by Jules for task 16118039652747565131 started by @rtech-technologies