novusk_syscalls 0.2.1

A library for implementing syscalls for Novusk
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use novusk_syscalls::syscall::SysCall;

mod write;
use write::sys_write;

fn main() {
    println!("Syscall example");

    let new_syscall = SysCall::new("sys_write", 0, sys_write);

    for b in b"Hello, World! From syscall example!\n" {
        unsafe { new_syscall.call(*b, 0, 0); }
    }
}