1- //! ABI definitions for symbols exported by risc0 -zkvm-platform .
1+ //! ABI definitions for symbols exported by sp1 -zkvm.
22
3- // Included here so we don't have to depend on risc0 -zkvm-platform .
3+ // Included here so we don't have to depend on sp1 -zkvm.
44//
55// FIXME: Should we move this to the "libc" crate? It seems like other
66// architectures put a lot of this kind of stuff there. But there's
7- // currently no risc0 fork of the libc crate, so we'd either have to
7+ // currently no succinct fork of the libc crate, so we'd either have to
88// fork it or upstream it.
99
1010#![ allow( dead_code) ]
@@ -19,35 +19,16 @@ pub mod fileno {
1919}
2020
2121unsafe extern "C" {
22- // Wrappers around syscalls provided by risc0-zkvm-platform:
23- pub fn sys_halt ( ) ;
24- pub fn sys_output ( output_id : u32 , output_value : u32 ) ;
25- pub fn sys_sha_compress (
26- out_state : * mut [ u32 ; DIGEST_WORDS ] ,
27- in_state : * const [ u32 ; DIGEST_WORDS ] ,
28- block1_ptr : * const [ u32 ; DIGEST_WORDS ] ,
29- block2_ptr : * const [ u32 ; DIGEST_WORDS ] ,
30- ) ;
31- pub fn sys_sha_buffer (
32- out_state : * mut [ u32 ; DIGEST_WORDS ] ,
33- in_state : * const [ u32 ; DIGEST_WORDS ] ,
34- buf : * const u8 ,
35- count : u32 ,
36- ) ;
37- pub fn sys_rand ( recv_buf : * mut u32 , words : usize ) ;
22+ // Wrappers around syscalls provided by sp1-zkvm-platform:
23+ pub fn sys_rand ( recv_buf : * mut u8 , words : usize ) ;
3824 pub fn sys_panic ( msg_ptr : * const u8 , len : usize ) -> !;
39- pub fn sys_log ( msg_ptr : * const u8 , len : usize ) ;
40- pub fn sys_cycle_count ( ) -> usize ;
41- pub fn sys_read ( fd : u32 , recv_buf : * mut u8 , nrequested : usize ) -> usize ;
4225 pub fn sys_write ( fd : u32 , write_buf : * const u8 , nbytes : usize ) ;
4326 pub fn sys_getenv (
4427 recv_buf : * mut u32 ,
4528 words : usize ,
4629 varname : * const u8 ,
4730 varname_len : usize ,
4831 ) -> usize ;
49- pub fn sys_argc ( ) -> usize ;
50- pub fn sys_argv ( out_words : * mut u32 , out_nwords : usize , arg_index : usize ) -> usize ;
5132
5233 // Allocate memory from global HEAP.
5334 pub fn sys_alloc_words ( nwords : usize ) -> * mut u32 ;
0 commit comments