1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#![cfg_attr(not(test), no_std)]
#![doc = include_str!("../README.md")]
use core::{sync::atomic::{AtomicPtr, AtomicUsize}, ptr::null_mut};
pub mod porcelain;
pub mod syscall;
#[link_section=".bridge.syscall_in.ptr"]
#[no_mangle]
#[used]
#[doc(hidden)]
pub static SYSCALL_IN_PTR: AtomicPtr<u8> = AtomicPtr::new(null_mut());
#[link_section=".bridge.syscall_in.len"]
#[no_mangle]
#[used]
#[doc(hidden)]
pub static SYSCALL_IN_LEN: AtomicUsize = AtomicUsize::new(0);
#[link_section=".bridge.syscall_out.ptr"]
#[no_mangle]
#[used]
#[doc(hidden)]
pub static SYSCALL_OUT_PTR: AtomicPtr<u8> = AtomicPtr::new(null_mut());
#[link_section=".bridge.syscall_out.len"]
#[no_mangle]
#[used]
#[doc(hidden)]
pub static SYSCALL_OUT_LEN: AtomicUsize = AtomicUsize::new(0);