Skip to content

Commit 71deea2

Browse files
ryanbreenclaude
andcommitted
fix(ci): add missing binaries and fix build errors
- Add isolation.elf and isolation_attacker.elf to build.sh These were defined in Cargo.toml but not being copied - Fix double_fault_handler parameter naming (error_code -> _error_code) to match usage in function body - Add rust-objcopy commands for new binaries This should resolve the kernel build failures in CI. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 93ecd1e commit 71deea2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

kernel/src/interrupts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ extern "x86-interrupt" fn breakpoint_handler(stack_frame: InterruptStackFrame) {
147147

148148
extern "x86-interrupt" fn double_fault_handler(
149149
stack_frame: InterruptStackFrame,
150-
error_code: u64,
150+
_error_code: u64,
151151
) -> ! {
152152
// Log additional debug info before panicking
153-
log::error!("DOUBLE FAULT - Error Code: {:#x}", error_code);
153+
log::error!("DOUBLE FAULT - Error Code: {:#x}", _error_code);
154154
log::error!("Instruction Pointer: {:#x}", stack_frame.instruction_pointer.as_u64());
155155
log::error!("Stack Pointer: {:#x}", stack_frame.stack_pointer.as_u64());
156156
log::error!("Code Segment: {:?}", stack_frame.code_segment);

userspace/tests/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ cp target/x86_64-breenix/release/hello_world hello_world.elf
1818
cp target/x86_64-breenix/release/counter counter.elf
1919
cp target/x86_64-breenix/release/spinner spinner.elf
2020
cp target/x86_64-breenix/release/fork_test fork_test.elf
21+
cp target/x86_64-breenix/release/isolation isolation.elf
22+
cp target/x86_64-breenix/release/isolation_attacker isolation_attacker.elf
23+
cp target/x86_64-breenix/release/syscall_test syscall_test_rust.elf
2124

2225
# Create flat binaries
2326
rust-objcopy -O binary syscall_test.elf syscall_test.bin
@@ -26,6 +29,8 @@ rust-objcopy -O binary hello_world.elf hello_world.bin
2629
rust-objcopy -O binary counter.elf counter.bin
2730
rust-objcopy -O binary spinner.elf spinner.bin
2831
rust-objcopy -O binary fork_test.elf fork_test.bin
32+
rust-objcopy -O binary isolation.elf isolation.bin
33+
rust-objcopy -O binary isolation_attacker.elf isolation_attacker.bin
2934

3035
echo "Built all ELF files"
3136
echo "syscall_test size: $(stat -f%z syscall_test.bin 2>/dev/null || stat -c%s syscall_test.bin) bytes"

0 commit comments

Comments
 (0)