Split arch as crate#424
Conversation
…d ContextSwitchHookHolder Zero-dependency traits crate to break arch↔scheduler circular dependency. Co-Authored-By: Claude <noreply@anthropic.com>
Extract pure architecture code (CSR register ops, Context struct, asm macros, constants) from kernel/src/arch/riscv/mod.rs into a standalone arch crate (crate name: arch_crate). The kernel's arch module remains intact — the arch crate is linked as a separate dependency for future use. Co-Authored-By: Claude <noreply@anthropic.com>
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27407600597. |
|
❌ Job failed. Failed jobs: check_format (failure), check_license (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/27407600597. |
Remove scheduler/boards/kernel-dependent code from arch crate: - Replace crate::scheduler imports with core_traits - Remove pend_switch_context kernel check (simplified) - Remove start_schedule (kernel-dependent) - Remove send_ipi (boards-dependent) - Remove trap.rs (kernel-dependent, stays in kernel crate) - Keep pure arch code: CSR ops, Context struct, macros, constants Co-Authored-By: Claude <noreply@anthropic.com>
- Complete truncated license header in arch/src/lib.rs - Apply rustfmt to core_traits/src/lib.rs, arch/src/lib.rs, arch/src/riscv/mod.rs - Apply gn format to core_traits/BUILD.gn, arch/BUILD.gn, kernel/BUILD.gn Co-Authored-By: Claude <noreply@anthropic.com>
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27460645974. |
|
❌ Job failed. Failed jobs: check_license (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/27460645974. |
These board-specific dependencies cause GN resolution failures for boards that don't include them in their dependency chain. Arch crate only needs core_traits, blueos_kconfig, and blueos_hal. Co-Authored-By: Claude <noreply@anthropic.com>
Required for gn gen to resolve the rustflags.txt input dependency. Without this, boards fail with 'Input to target not generated by a dependency'. Co-Authored-By: Claude <noreply@anthropic.com>
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27468469706. |
|
✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/27468469706. |
xuchang-vivo
left a comment
There was a problem hiding this comment.
Plz change the copyright info
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27520060436. |
|
❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/27520060436. |
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27520376084. |
|
❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/27520376084. |
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27520794954. |
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27521255502. |
|
✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/27520794954. |
|
✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/27521255502. |
|
build_prs |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/27527917393. |
|
✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/27527917393. |
No description provided.