-
Notifications
You must be signed in to change notification settings - Fork 1
Shikimori's Not Just a Cutie! #9
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
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
61885a9
Migrate to bootloader v0.11.15
zen-zap 060e58c
tested with user applications -- correctly throws a PAGE FAULT
zen-zap 84059b8
implement user mode
zen-zap c153c04
ci [run ci]
zen-zap a85ac46
fix ci [run ci]
zen-zap 43ac1fa
added bitmap allocator
zen-zap 2ce060a
refactor(core): migrate from legacy PIC to modern APIC architecture
zen-zap 062c2db
minor changes
zen-zap a182703
uefi boot works
zen-zap 4c6f256
async mutexes in file ops
zen-zap 975623a
minor fix
zen-zap c805004
framebuffer setup
zen-zap ca04693
added force frame pointers
zen-zap 5bcf280
it prints?
zen-zap 53e59d2
Potential fix for code scanning alert no. 2: Workflow does not contai…
zen-zap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,5 @@ | ||
| # .cargo/config.toml | ||
|
|
||
| [profile.dev] | ||
| debug = true | ||
| overflow-checks = true | ||
| panic = "abort" | ||
| [target.'cfg(all(target_arch = "x86_64", target_os = "none"))'] | ||
| rustflags = ["-C", "force-frame-pointers=yes"] | ||
|
|
||
| [build] | ||
| target = "x86_64-blog_os.json" | ||
|
|
||
| [unstable] | ||
| build-std-features = ["compiler-builtins-mem"] | ||
| build-std = ["core", "compiler_builtins", "alloc"] | ||
|
|
||
| [target.x86_64-blog_os] | ||
| rustflags = ["-C", "force-frame-pointers=yes"] | ||
| runner = "bootimage runner" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,41 +1,57 @@ | ||
| name: Running Build | ||
| name: Creo OS | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| branches: ["**"] | ||
| pull_request: | ||
| branches: ["**"] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| build_and_test: | ||
| if: "contains(github.event.head_commit.message, '[run ci]') || github.event_name == 'pull_request'" | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| - name: Setup Nightly Rust | ||
| uses: dtolnay/rust-toolchain@nightly | ||
| with: | ||
| toolchain: nightly-x86_64-unknown-linux-gnu | ||
| override: true | ||
| components: rust-src, llvm-tools-preview | ||
| components: rust-src, llvm-tools-preview, clippy, rustfmt | ||
| targets: x86_64-unknown-none | ||
|
|
||
| - name: Cache Cargo registry | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
| - name: Cache Cargo Registry and Build | ||
| uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Cache Cargo build | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: target | ||
| key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} | ||
| # - name: Check Formatting | ||
| # run: cargo fmt --all -- --check | ||
|
|
||
| # - name: Run Clippy | ||
| # # -- -D warnings turns all warnings into errors, so the CI will fail if there are any clippy warnings. Add it later. | ||
| # run: cargo clippy --package creo --target x86_64-unknown-none | ||
|
|
||
| - name: Cache Cargo Registry and Build | ||
| uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Install QEMU | ||
| run: sudo apt-get update && sudo apt-get install -y qemu-system-x86 | ||
|
|
||
| - name: Build Kernel | ||
| run: cargo build --package creo --target x86_64-unknown-none | ||
|
|
||
| - name: Build Orchestrator | ||
| run: cargo build --package builder | ||
|
|
||
| - name: Install bootimage | ||
| run: cargo install bootimage | ||
| - name: Create disk.img | ||
| run: dd if=/dev/zero of=disk.img bs=1M count=64 | ||
|
|
||
| - name: Build project | ||
| run: cargo build --verbose --target x86_64-blog_os.json | ||
| - name: Boot Test (60 Second Timeout) | ||
| run: | | ||
| timeout 60s cargo run --bin builder || if [ $? -eq 124 ]; then exit 0; else exit 1; fi | ||
| env: | ||
| CI: "true" | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| /target | ||
| disk.img | ||
| description.md | ||
| pci_output.txt | ||
| notes.excalidraw | ||
|
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,29 @@ | ||
| { | ||
| "rust-analyzer.cargo.target": "x86_64-blog_os.json", | ||
| "rust-analyzer.cargo.buildScripts.enable": false, | ||
| "rust-analyzer.procMacro.enable": false, | ||
| "rust-analyzer.check.allTargets": false, | ||
| "rust-analyzer.checkOnSave": false, | ||
| "rust-analyzer.cargo.autoreload": true, | ||
| "rust-analyzer.rustc.source": null | ||
| "rust-analyzer.rustc.source": null, | ||
| "cSpell.words": [ | ||
| "acpi", | ||
| "apic", | ||
| "apics", | ||
| "creo", | ||
| "GLOBALFS", | ||
| "iobase", | ||
| "ioregsel", | ||
| "iowin", | ||
| "keyevent", | ||
| "keypresses", | ||
| "rsdp", | ||
| "scanc", | ||
| "scancode", | ||
| "scancodes", | ||
| "sivr", | ||
| "uninit", | ||
| "vaddr", | ||
| "Virt", | ||
| "virtio" | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Swatinem/rust-cache@v2step is duplicated (same name and action at lines 28-30 and 38-39). This is redundant and can be removed to shorten CI time and reduce confusion.