Skip to content

Commit

Permalink
Merge pull request #1438 from o1-labs/dw/add-constants-syscalls
Browse files Browse the repository at this point in the history
Add constants syscalls
  • Loading branch information
mrmr1993 authored Dec 6, 2023
2 parents 9d32f9b + c808677 commit b1f600a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions optimism/src/mips/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ pub const FD_HINT_WRITE: u32 = 4;
pub const FD_PREIMAGE_READ: u32 = 5;
pub const FD_PREIMAGE_WRITE: u32 = 6;

pub const SYSCALL_MMAP: u32 = 4090;
pub const SYSCALL_BRK: u32 = 4045;
pub const SYSCALL_CLONE: u32 = 4120;
pub const SYSCALL_EXIT_GROUP: u32 = 4246;
pub const SYSCALL_READ: u32 = 4003;
pub const SYSCALL_WRITE: u32 = 4004;
pub const SYSCALL_FCNTL: u32 = 4055;

// Source: https://www.doc.ic.ac.uk/lab/secondyear/spim/node10.html
// Reserved for assembler
pub const REGISTER_AT: u32 = 1;
Expand Down

0 comments on commit b1f600a

Please sign in to comment.