Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ pub use postcard;

pub mod keccak;

// Ecall codes. Allow dead code here because these are only used in the RISC-V runtime, not when
// compiling for the host.
// Ecall codes used exclusively in the RISC-V runtime; host builds omit these.
#[cfg(target_arch = "riscv32")]
pub(crate) const SYS_LOG: u32 = 0x200;
#[cfg(target_arch = "riscv32")]
Expand All @@ -33,9 +32,6 @@ pub(crate) const SYS_READ_PRIVATE_INPUT: u32 = 0x400;
#[cfg(target_arch = "riscv32")]
pub(crate) const SYS_CYCLE_COUNT: u32 = 0x401;
#[cfg(target_arch = "riscv32")]
#[allow(dead_code)]
pub(crate) const SYS_OVERWRITE_SP: u32 = 0x402;
#[cfg(target_arch = "riscv32")]
pub(crate) const SYS_ALLOC_ALIGNED: u32 = 0x403;
#[cfg(target_arch = "riscv32")]
pub(crate) const SYS_PERFORM_HEAP_ALLOCATION: u32 = 0x405;
Expand Down
Loading