Add x86_64 architecture support with complete 64-bit kernel implement… - #341
Closed
hamzasiddiqui2830-art wants to merge 1 commit into
Closed
hamzasiddiqui2830-art wants to merge 1 commit into
hamzasiddiqui2830-art wants to merge 1 commit into
Conversation
…ation - src/kernel/arch/x86_64/arch.zig: New 64-bit architecture backend with CPU state, GDT/TSS, IDT, paging, and I/O operations - src/kernel/arch/x86_64/boot.asm: Assembly bootloader with Multiboot2 support and long mode entry - src/kernel/arch/x86_64/gdt.zig: 64-bit Global Descriptor Table with kernel/user code/data segments and TSS - src/kernel/arch/x86_64/idt.zig: 64-bit Interrupt Descriptor Table with interrupt/exception handling - src/kernel/arch/x86_64/interrupt_stubs.asm: Assembly interrupt/IRQ stubs with register preservation - src/kernel/arch/x86_64/irq.zig: IRQ handling system with PIC remapping and handler registration - src/kernel/arch/x86_64/isr.zig: Exception handling with detailed CPU state reporting - src/kernel/arch/x86_64/keyboard.zig: PS/2 keyboard driver with scancode-to-ASCII conversion - src/kernel/arch/x86_64/link.ld: Linker script defining 64-bit kernel memory layout and sections - src/kernel/arch/x86_64/multiboot.zig: Multiboot2 header definitions and information parsing - src/kernel/arch/x86_64/paging.zig: 4-level page table implementation with virtual/physical address mapping - src/kernel/arch/x86_64/pci.zig: PCI device enumeration and configuration space access - src/kernel/arch/x86_64/pit.zig: Programmable Interval Timer initialization and frequency control - src/kernel/arch/x86_64/rtc.zig: Real Time Clock date/time retrieval with BCD conversion - src/kernel/arch/x86_64/serial.zig: Serial port communication driver with configurable baud rates - src/kernel/arch/x86_64/syscalls.zig: Syscall handler framework with MSR setup for fast system calls - build.zig: Updated build system to support x86_64 target with corresponding QEMU commands - .gitignore: Expanded ignore patterns for build artifacts and editor files The implementation provides a complete 64-bit kernel foundation with memory management, interrupt handling, device drivers, and user mode transition capabilities. Runtime tests validate the 64-bit kernel functionality including user task state and memory management operations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ation
The implementation provides a complete 64-bit kernel foundation with memory management, interrupt handling, device drivers, and user mode transition capabilities. Runtime tests validate the 64-bit kernel functionality including user task state and memory management operations.