Fix USB HID and System-wide Update for OSx2#4
Conversation
- Integrated the native xHCI USB driver stack with HID keyboard and mouse support. - Added explicit identification and absolute coordinate scaling for the QEMU/VMware virtual tablet (Vendor ID 0x0E0F, Product ID 0x0003). - Synchronized the entire repository with the latest stable development state (commit 210e106), including the RTC64 window manager, enhanced shell, and full documentation. - Verified successful compilation of the kernel and all system modules. - Cleaned up redundant architectural files from the root directory and moved them to the centralized docs/ folder. 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. |
- Integrated full xHCI USB driver with keyboard and mouse HID support. - Implemented SATA cache flushing and a "clean" shutdown sequence. - Added final power-off message: "you may now power off your pc". - Redesigned the mouse cursor to a numeric (X, Y) display in Hot Pink. - Enforced strict pixel-based coordinate clamping and non-grid positioning for peripherals and windows. - Fixed terminal scrolling to prevent GUI windows from moving during console output. - Hardened the shell with better bounds checking to prevent overflows. - Synchronized repository with the latest stable development state. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
…overhaul - USB/xHCI: Fixed tablet identification and coordinate scaling for QEMU. - Storage: Implemented AHCI cache flushing (SATA 0xE7) for data integrity. - Shutdown: Updated sequence to display "you may now power off your pc". - Graphics: Redesigned mouse interface with precision cursor and numeric telemetry. - Terminal: Fixed destructive scrolling to protect window positions. - Security: Added ELF validation for app spawning and hardened shell bounds. - Sync: Full repository alignment with latest stable multitasking features. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
- USB/xHCI: Fixed tablet identification and implemented precision coordinate scaling (32768 divisor). - Input: Implemented dual-input routing (Shell vs Window) with automatic focus switching in WM. - UI: Redesigned mouse interface with numeric coordinates and precision cursor; fixed terminal scrolling to protect window positions. - Storage: Added SATA cache flushing for clean shutdowns. - Security: Implemented ELF magic byte validation for app spawning and hardened shell buffer handling. - System: Synchronized with latest multitasking core and expanded documentation. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
- PMM: Fixed initialization order in `pmm.c` to properly reserve the GOP framebuffer, preventing tasks from leaking into video memory. - VGA: Implemented strict coordinate clamping in `vga_draw_mouse` to keep the mouse display on-screen. - VGA: Increased `mouse_back_buffer` to 160x16 to safely handle numeric telemetry strings. - xHCI: Updated tablet scaling and coordinate clamping for absolute accuracy. - Tasking: Added ELF binary validation to prevent corrupted execution or "bin to screen" artifacts. - General: Integrated dual-input routing and stationary window scrolling logic. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
- PMM: Implemented multi-layered "GOP Shield" to prevent task memory from leaking into the video buffer. - USB: Fixed xHCI tablet identification and precision coordinate scaling (32768 divisor). - Input: Implemented Alt+Tab context switching with immediate visual feedback in telemetry. - UI: Redesigned mouse interface to use ONLY numbers (in telemetry) and enforced strict screen boundaries. - Terminal: Refactored scrolling to redraw text area, keeping windows stationary. - Security: Added ELF validation for app spawning and hardened shell path handling. - Storage: Implemented SATA cache flushing for clean shutdowns and final power-off message. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
This commit synchronizes the OSx2 Sovereign codebase with stable core features and addresses multiple user requests: - Implemented robust xHCI stack with HID support for keyboard and mouse. - Added QEMU tablet scaling for precise pixel-based numeric coordinate display. - Hardened PMM with a GOP Shield to prevent memory corruption in the video buffer. - Refactored terminal scrolling to refresh text area without displacing GUI windows. - Implemented Alt+Tab context switching between Shell and Window Manager modes. - Added clean shutdown sequence with AHCI cache flushing and power-off messaging. - Integrated ELF validation for secure application spawning. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
…dalone app This commit introduces a new flat binary format (RSL1) for OSx2 applications: - Added `rsl_header_t` to `include/rsl.h` as a global OS header for binaries. - Implemented an interrupt-based syscall interface (`int 0x03`) for RSL services. - Refactored the RTC64 Window Manager and Text Editor into standalone `.bin` applications. - Updated the Task Loader to support loading and executing RSL binaries with header-defined entry points. - Enhanced the Shell with a boot menu for the WM and an improved `exec` command for binary execution. - Updated the build system to generate flat binaries with custom headers using a new linker script. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
This commit provides a comprehensive update to the OSx2 Sovereign system: - Implemented the RSL1 flat binary format with a global OS header (`rsl_header_t`). - Added an interrupt-based syscall interface (`int 0x03`) for kernel services. - Refactored the RTC64 Window Manager into a standalone application (`wm.bin`). - Implemented an interactive OS installer (`rsl_install`) that formats a target drive and copies system files. - Added support for the `INST.me` flag to indicate successful installation. - Enhanced the Shell with an `exec` command and a boot menu for launching the WM. - Improved kernel robustness with a bounded panic reporter and a GOP-shielded PMM. - Fixed USB HID support for virtual tablets and implemented coordinate scaling. - Refactored terminal scrolling to protect stationary GUI windows. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
This commit advances the OSx2 Sovereign architecture with several key features: - Implemented "Right-Sized" ramdisk logic in `fat_tool.py` to optimize boot image size. - Added dynamic page allocation for the "USE" ramdisk in `vdisk.c` to save physical memory. - Enhanced the OS Installer (`rsl_install`) with AHCI `COMRESET`, DMA stop handshakes, and MBR bootstrap writing. - Hardened the kernel panic reporter by implementing a custom, bounded `vsnprintf` in `string_ops.c`. - Restored functional boot system by fixing the `scripts/fat_tool.py` regression. - Updated shell boot menu to support launching the standalone Window Manager. - Fixed USB HID coordinate scaling and keyboard auto-repeat for better user experience. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
… installer
This commit completes the technical overhaul of OSx2 Sovereign:
- Implemented a custom `vsnprintf` in `string_ops.c` with support for `%s`, `%d`, `%x`, and `%p`.
- Refactored all kernel printing (`vga_print`, `serial_print`, `forensic_panic`) to use the new `vsnprintf` for safe, bounded formatting.
- Replaced the deprecated Sovereign Signature `0xEFBEADDE` with the new identifier `0x5056524E` ("SVRN") across the boot tool, drivers, installer, and documentation.
- Finalized the dual-ramdisk model with a Right-Sized `BOOT:/` image and a dynamic-allocation `USE_RAM` volume.
- Verified the OS Installer (`rsl_install`) with robust AHCI handshakes and MBR bootstrap deployment.
- Cleaned up legacy stubs and ensured architectural compliance with the "Mechanical Truth" philosophy.
Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
…ning This commit significantly upgrades the OSx2 Sovereign architecture: - Integrated TinyUSB host stack with a custom xHCI HCD shim for modular USB support. - Implemented "Right-Sized" ramdisk logic to optimize the `BOOT:/` volume footprint. - Added a dynamic-allocation "USE" ramdisk that utilizes on-demand PMM page mapping. - Enhanced the OS Installer with professional-grade AHCI hardware handshakes and MBR deployment. - Replaced the deprecated Sovereign Signature with "SVRN" (0x5056524E) across the system. - Hardened kernel output with a custom, bounded `vsnprintf` implementation. - Refactored console and panic drivers to use safe formatting, eliminating potential buffer overflows. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
…ation This comprehensive update elevates OSx2 Sovereign to a professional standard: - Integrated TinyUSB Host Stack with a custom xHCI HCD shim for future-proof USB support. - Refactored the Makefile to provide an independent build environment for userland binaries, ensuring isolation from kernel-specific memory models. - Implemented "Right-Sized" ramdisk logic in `fat_tool.py` to calculate exact storage needs for boot files. - Added a dynamic-allocation "USE" ramdisk in `vdisk.c` that maps PMM pages on-demand. - Enhanced the OS Installer with AHCI `COMRESET`, DMA stop handshakes, and automated MBR deployment. - Replaced the deprecated `0xEFBEADDE` and `0xDEADBEEF` signatures with the new "SVRN" (0x5056524E) identifier. - Hardened kernel output with a custom, bounded `vsnprintf` formatting engine in `string_ops.c`. - Refactored console and panic drivers to use safe formatting, eliminating buffer overflow risks. - Synchronized all documentation and internal registries with the new Sovereign standards. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
…builds This commit significantly upgrades the visual and build infrastructure of OSx2 Sovereign: - Implemented a primitive drawing engine (`DRAW_RECT`, `DRAW_CIRCLE`, `DRAW_TEXT`, `DRAW_PNG`) using 1:1 pixel mapping. - Integrated LodePNG to support PNG image rendering via a new system call. - Refactored the build system to use separate `BIN_CFLAGS` and `BIN_LDFLAGS` for userland/standalone RSL binaries. - Refactored the Window Manager (`wm.bin`) to utilize the new "Mechanical Truth" API and double-buffered surfaces. - Implemented a proof-of-concept selectable text box in the standalone Window Manager. - Removed remaining `0xDEADBEEF` references from the codebase to comply with deprecation standards. - Finalized kernel hardening with bounded `vsnprintf` formatting in all print drivers. - Fixed several linker issues related to independent binary builds while maintaining cross-compiler consistency. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
…Installer - Implemented full XHCI host controller driver with HID (Keyboard/Mouse/Tablet) and MSC support. - Integrated TinyUSB with a custom xHCI HCD shim for peripheral management. - Transitioned to a pixel-perfect graphics engine in `vga_serial.c` with raw pixel primitives. - Established the RSL1 flat binary format and standalone app model (Window Manager, Text Editor). - Developed a comprehensive OS installer (`rsl_install`) with AHCI COMRESET and MBR signatures. - Implemented professional boot sequence with 'RTECH SOVEREIGN' logo and hardware spinner. - Hardened system safety with bounded `vsnprintf` and a PMM GOP shield. - Corrected `fat_tool.py` for valid FAT32 filesystem generation in ramdisks. - Removed legacy `DEADBEEF` signatures, replacing them with 'SVRN' identifiers. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
- Fixed USB HID (Keyboard/Mouse/Tablet) support via XHCI and TinyUSB integration. - Implemented true hard-preemptive multitasking via APIC timer (30ms slices). - Corrected the RSL syscall bridge to support up to 5 arguments for standalone binaries. - Finalized the OS installer with SATA disk formatting and MBR bootstrapping. - Refactored VGA console with pixel-based rendering and stationary window scrolling. - Validated FAT32 ramdisk generation for reliable boot-to-GUI flow. - Removed legacy signatures and cleaned up build warnings for a production-ready core. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
This submission fixes the USB keyboard and mouse issues by merging the latest xHCI driver improvements and adding specific support for the virtual tablet device used in the QEMU environment. It also performs a comprehensive system update, bringing in a new windowing engine, improved shell commands, and detailed documentation. The code has been refactored for better safety (slab-allocated FatFS structures) and responsiveness (APIC timer-based multitasking).
PR created automatically by Jules for task 17929222888695824930 started by @rtech-technologies