-
Notifications
You must be signed in to change notification settings - Fork 1
Development #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development #135
Conversation
Caution Review failedThe pull request is closed. WalkthroughRefactors CPU feature detection into arch/x86_64/features, updates many includes to x64.h, adjusts build flags/sources, modifies syscall write handling and syscall IDT gate setup, adds AHCI read/write APIs and timing tweaks, expands FAT1x directory ops, updates cli/sti barriers, tweaks SwitchToHigherHalf calling convention, simplifies Kernel ACPI messages, and alters shell cd behavior. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant App as User App
participant Kernel as Syscall Handler
participant Out as PrintKernel / PrintKernelError
User->>App: write(fd, buf, count)
App->>Kernel: SYS_WRITE(fd, buf, count)
alt fd == 1 (stdout)
Kernel->>Out: PrintKernel(buf, count)
Out-->>Kernel: ok
Kernel-->>App: return count
else fd == 2 (stderr)
Kernel->>Out: PrintKernelError(buf, count)
Out-->>Kernel: ok
Kernel-->>App: return count
else other fd
Kernel-->>App: return -1
end
sequenceDiagram
autonumber
participant VFS as BlockDevice Wrapper
participant AHCI as AHCI_Read/WriteSectors
participant Port as AHCI Port
participant DMA as HBA DMA Engine
VFS->>AHCI: ReadSectors/WriteSectors(port, lba, count, buf)
AHCI->>Port: Validate init/idle
AHCI->>Port: AHCI_SendCommand(READ/WRITE_DMA_EX)
Port->>DMA: Program PRDT / issue FIS
DMA-->>Port: IRQ/complete
Port-->>AHCI: status
AHCI-->>VFS: result
sequenceDiagram
autonumber
participant Boot as CpuInit
participant CPU as CPUID
Boot->>CPU: Query features
CPU-->>Boot: Set sse3/ssse3/sse41/sse42/bmi1/bmi2/fma/...
alt OSXSAVE not supported
Boot->>CPU: CPUFeatureValidation()
CPU-->>Boot: Re-validated flags
end
Boot->>CPU: CPUFeatureValidation() (final)
CPU-->>Boot: Confirmed feature state
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (21)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores