Skip to content

Commit

Permalink
fix -skip-unused build
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 28, 2024
1 parent c608748 commit 5d770ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel/modules/dev/serial/serial.v
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ pub fn out(value u8) {
}

// Unlocked COM1 reporting.
@[markused]
pub fn panic_out(value u8) {
if value == `\n` {
for !is_transmiter_empty(serial.com1_port) {}
Expand Down
1 change: 1 addition & 0 deletions kernel/modules/kprint/kprint.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import klock
import dev.serial
import term

@[markused]
__global (
printf_lock klock.Lock
kprint_lock klock.Lock
Expand Down
1 change: 1 addition & 0 deletions kernel/modules/syscall/syscall.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module syscall
import x86.cpu.local as cpulocal
//import userland

@[markused]
fn leave(context &cpulocal.GPRState) {
asm volatile amd64 {
cli
Expand Down

0 comments on commit 5d770ed

Please sign in to comment.