Change io crate & add a small shell

This commit is contained in:
2026-03-25 20:45:11 +01:00
parent f966a1239e
commit ae0593c972
98 changed files with 11102 additions and 810 deletions

View File

@@ -1,9 +1,8 @@
#[path = "unsupported/mod.rs"]
mod unsupported;
pub use self::unsupported::*;
use crate::os::survos::syscall;
#[path = "../../../../../crates/shared/src/syscall.rs"]
mod syscall;
pub use self::unsupported::*;
/// # Safety
/// `argc` and `argv` are passed by the kernel
@@ -17,6 +16,10 @@ pub unsafe extern "C" fn _start(argc: isize, argv: *const *const u8) -> isize {
unsafe { main(argc, argv) }
}
pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
crate::sys::args::init(argc, argv);
}
pub fn abort_internal() -> ! {
// todo real abort
syscall::exit()