diff --git a/api/file.axel b/api/file.axel deleted file mode 100644 index 111c92ed..00000000 --- a/api/file.axel +++ /dev/null @@ -1,12 +0,0 @@ -file { - val= - name: "Hi" - extension: "txt" - size: 123 - - fn| - open: (None)->() - read: (Num)->(String) - write: (Num, String)->(Bool) - close: (None)->(Bool) -} diff --git a/asl/Cargo.toml b/asl/Cargo.toml deleted file mode 100644 index b01793c6..00000000 --- a/asl/Cargo.toml +++ /dev/null @@ -1,12 +0,0 @@ -[package] -name = "asl" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] - -[dependencies.logos] -version = "0.12.1" -default-features = false diff --git a/asl/assets/asl/asl_simple.asl b/asl/assets/asl/asl_simple.asl deleted file mode 100644 index 7d18aa51..00000000 --- a/asl/assets/asl/asl_simple.asl +++ /dev/null @@ -1,10 +0,0 @@ -DefinitionBlock ("test.aml", "DSDT", 1, "OEMID ", "TABLEID ", 0x00000000) -{ - Scope (_SB) - { - Device (PCI0) - { - Name (_HID, EisaId ("PNP0A03")) - } - } -} \ No newline at end of file diff --git a/asl/src/lib.rs b/asl/src/lib.rs deleted file mode 100644 index da057100..00000000 --- a/asl/src/lib.rs +++ /dev/null @@ -1,35 +0,0 @@ -use logos::{Lexer, Logos}; - -#[derive(Logos, Debug, Clone, Copy, PartialEq)] -enum Token { - #[regex(r"[ \t\n\f]+", logos::skip)] - #[error] - Error, - - #[regex("[1-9]+", num_parser)] - Num(isize), -} -fn num_parser(lex: &mut Lexer) -> isize { - let slice = lex.slice(); - let num_str: String = slice.into(); - let num = num_str.parse::(); - num.unwrap() -} - -#[test] -pub fn num_test() { - let mut lex = Token::lexer("5 42 75"); - assert_eq!(lex.next(), Some(Token::Num(5))); - assert_eq!(lex.next(), Some(Token::Num(42))); - assert_eq!(lex.next(), Some(Token::Num(75))); -} - -#[test] -pub fn asl_simple_test() { - let lex = Token::lexer(include_str!("../assets/asl/asl_simple.asl")); - - for token in lex { - // println!("{:?}", token); - assert_ne!(Token::Error, token); - } -} diff --git a/facepalm/Cargo.toml b/facepalm/Cargo.toml deleted file mode 100644 index 00a78e61..00000000 --- a/facepalm/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -name = "facepalm" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -log = "0.4.0" \ No newline at end of file diff --git a/facepalm/readme.md b/facepalm/readme.md deleted file mode 100644 index 172c720d..00000000 --- a/facepalm/readme.md +++ /dev/null @@ -1 +0,0 @@ -Facepalm is the general purpose debugger bundled with ableOS \ No newline at end of file diff --git a/facepalm/src/lib.rs b/facepalm/src/lib.rs deleted file mode 100644 index 1d140a15..00000000 --- a/facepalm/src/lib.rs +++ /dev/null @@ -1,19 +0,0 @@ -#![no_std] - -use log::*; - -pub const VERSION: &str = env!("CARGO_PKG_VERSION"); - -#[cfg(debug_assertions)] -pub const RELEASE_TYPE: &str = "debug"; - -#[cfg(not(debug_assertions))] -pub const RELEASE_TYPE: &str = "release"; - -pub fn start_facepalm() { - info!("facepalm 🤦 launched!"); - info!("facepalm 🤦 version: {}", VERSION); - info!("facepalm 🤦 {} mode", RELEASE_TYPE); - - // Drop into a debug shell -} diff --git a/userland/README.md b/userland/README.md deleted file mode 100644 index d8df701b..00000000 --- a/userland/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# ableOS userland - diff --git a/userland/bogomips.c b/userland/bogomips.c deleted file mode 100644 index 7e601c81..00000000 --- a/userland/bogomips.c +++ /dev/null @@ -1,77 +0,0 @@ -// Utterly stolen from stack overflow - - - - - -/* - * Standalone BogoMips program - * - * Based on code Linux kernel code in init/main.c and - * include/linux/delay.h - * - * For more information on interpreting the results, see the BogoMIPS - * Mini-HOWTO document. - * - * version: 1.3 - * author: Jeff Tranter (Jeff_Tranter@Mitel.COM) - */ - -#include -#include - -#ifdef CLASSIC_BOGOMIPS -/* the original code from the Linux kernel */ -static __inline__ void delay(int loops) -{ - __asm__(".align 2,0x90\n1:\tdecl %0\n\tjns 1b": :"a" (loops):"ax"); -} -#endif - -#ifdef QNX_BOGOMIPS -/* version for QNX C compiler */ -void delay(int loops); -#pragma aux delay = \ - "l1:" \ - "dec eax" \ - "jns l1" \ - parm nomemory [eax] modify exact nomemory [eax]; -#endif - -#ifdef PORTABLE_BOGOMIPS -/* portable version */ -static void delay(int loops) -{ - long i; - for (i = loops; i >= 0 ; i--) - ; -} -#endif - -int -main(void) -{ - unsigned long loops_per_sec = 1; - unsigned long ticks; - - printf("Calibrating delay loop.. "); - fflush(stdout); - - while ((loops_per_sec <<= 1)) { - ticks = clock(); - delay(loops_per_sec); - ticks = clock() - ticks; - if (ticks >= CLOCKS_PER_SEC) { - loops_per_sec = (loops_per_sec / ticks) * CLOCKS_PER_SEC; - printf("ok - %lu.%02lu BogoMips\n", - loops_per_sec/500000, - (loops_per_sec/5000) % 100 - ); - return 0; - } - } - printf("failed\n"); - return -1; -} - - diff --git a/userland/lib_syscalls/C/file_calls.c b/userland/lib_syscalls/C/file_calls.c deleted file mode 100644 index 4a8b0507..00000000 --- a/userland/lib_syscalls/C/file_calls.c +++ /dev/null @@ -1,30 +0,0 @@ -enum FSReturns { - /// The system call was successful - Ok, - - /// The directory can not be created - DirectoryCouldNotBeCreated, - - /// The directory could not be removed - DirectoryCouldNotBeRemoved, - - /// - FileCouldNotBeCreated, - - /// - FileCouldNotBeRemoved, - /// The file could not be opened - - FileCouldNotBeOpened, - /// - FileCouldNotBeClosed, -}; - -int create_directory(path) { - return DirectoryCouldNotBeCreated; -} - -/// -int remove_directory(path) { - return DirectoryCouldNotBeRemoved; -} diff --git a/userland/lib_syscalls/README.md b/userland/lib_syscalls/README.md deleted file mode 100644 index 72dff5ff..00000000 --- a/userland/lib_syscalls/README.md +++ /dev/null @@ -1 +0,0 @@ -# The libraries here are simplified examples of syscall APi \ No newline at end of file diff --git a/userland/rname/Cargo.lock b/userland/rname/Cargo.lock deleted file mode 100644 index c4f70976..00000000 --- a/userland/rname/Cargo.lock +++ /dev/null @@ -1,7 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "rname" -version = "0.1.0" diff --git a/userland/rname/Cargo.toml b/userland/rname/Cargo.toml deleted file mode 100644 index 8f2e8e28..00000000 --- a/userland/rname/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "rname" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] diff --git a/userland/rname/src/main.rs b/userland/rname/src/main.rs deleted file mode 100644 index 87fb20fc..00000000 --- a/userland/rname/src/main.rs +++ /dev/null @@ -1,44 +0,0 @@ -//! An implementation of the uname command. - -use crate::Arch::*; -use core::fmt; - -// an example string "Darwin Roadrunner.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386" -pub struct RName { - pub arch: Arch, -} - -#[derive(Debug, Clone, Copy)] -pub enum Arch { - X86, - X86_64, - ARM, - ARM64, - PPC, - PPC64, - MIPS, - MIPS64, - SPARC, - SPARC64, - Unknown, -} - -impl fmt::Display for Arch { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{:?}", self) - } -} - -fn main() { - let mut rname_string = "".to_string(); - - rname_string.push_str("ableOS"); - - let arch = Some(X86_64); - if let Some(arch) = arch { - let fmt_str = format!(" {:?}", arch); - rname_string.push_str(&fmt_str); - } - - println!("{}", rname_string); -} diff --git a/userland/root_fs/ext2.img b/userland/root_fs/ext2.img deleted file mode 100644 index 762bece5..00000000 Binary files a/userland/root_fs/ext2.img and /dev/null differ diff --git a/userland/wasm_pk_data/src/lib.rs b/userland/wasm_pk_data/src/lib.rs deleted file mode 100644 index fc5a0147..00000000 --- a/userland/wasm_pk_data/src/lib.rs +++ /dev/null @@ -1,22 +0,0 @@ -#![no_std] - -extern crate alloc; - -use { - alloc::{string::String, vec::Vec}, - serde::Deserialize, -}; - -#[derive(Debug, Deserialize)] -pub struct Version { - pub major: u16, - pub minor: u8, - pub patch: u8, -} - -#[derive(Debug, Deserialize)] -pub struct Metadata { - pub name: String, - pub version: Version, - pub authors: Vec, -}