How faishal882/uqaabos works
Project Type and Purpose
• UqaabOS is an operating system kernel project, built in C++ with some x86 assembly for low-level tasks. The project is focused on kernel development with support for multitasking, basic hardware drivers (keyboard, mouse, PCI, storage, VGA), interrupt management, and a basic GUI.
Analyzing the File Structure
• Top-Level Files:
• Files like .gitignore, Makefile, and README.md indicate standard project structure and build configuration.
• Linker script (linker.ld) and multiboot assembly file (src/multiboot.asm) suggest boot-time and linking responsibilities.
• Directories:
• src/core: Contains essential kernel components like global descriptor table (gdt.cpp), interrupts (interrupts, interruptstub.asm), and port operations.
• src/drivers: Contains directories for hardware device drivers such as keyboard, mouse, PCI, storage, and VGA.
• src/include: Provides header files for drivers, core functionalities (gdt, interrupts), standard C library, memory management, and multitasking. This separation helps define interfaces and ensures modularity.
• Other directories (src/libc, src/memorymanagement, src/multitasking) further outline specific sub-systems within the kernel.
Key Architectural Components
a. Bootloader and ISO Creation:
• ISO directory components, including GRUB configuration (iso/boot/grub/grub.cfg) used to boot UqaabOS.
• Role of bootloader (via GRUB and multiboot.asm) in loading the kernel.
b. Kernel Core:
• Primary kernel initialization sequence beginning in src/kernel.cpp.
• Boot starting point from src/multiboot.asm, which hands control over to the kernel.
• Core system components in src/core (GDT, interrupts, port I/O) which set up the basic execution environment.
c. Device Drivers:
• That these modules communicate with the kernel core and provide foundational support for device management.
d. Subsystems and Services:
• Memory Management: Represent the memory management components (src/memorymanagement/* and relevant headers).
• Multitasking: Capture the multitasking support (components in src/multitasking/ and corresponding headers).
• Standard Library (LibC): Show libc’s role (src/libc and src/include/libc) in providing standard I/O and basic library support.
Relationships and Interactions
• BIOS → GRUB bootloader (via ISO configuration) → Kernel Entry (multiboot.asm & kernel.cpp).
• Present the kernel as a central block with connected modules:
• Core sub-system (GDT, Interrupts, Port I/O)
• Memory Management and Multitasking modules.
• Device Drivers interacting with hardware events (keyboard, mouse, PCI, storage, VGA).
• LibC providing supplementary functions to other modules.
• That the submodules within a monolithic kernel call each other directly, so the relationships are tightly coupled.
Architectural Patterns and Design Principles
• Monolithic design pattern—that is, a single, unified kernel space that integrates all functionalities.
• Bootstrapping design (from bootloader to kernel initialization) which is essential for any OS.