From c63831870dc49c30b3f226f97a535f140c8e05f7 Mon Sep 17 00:00:00 2001 From: Jackey-Huo Date: Fri, 3 May 2019 14:06:00 +0800 Subject: [PATCH] remove the fxxk words.... --- kernel/src/arch/riscv32/mod.rs | 6 +----- kernel/src/shell.rs | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/src/arch/riscv32/mod.rs b/kernel/src/arch/riscv32/mod.rs index e22b7d9..75b7ccc 100644 --- a/kernel/src/arch/riscv32/mod.rs +++ b/kernel/src/arch/riscv32/mod.rs @@ -44,7 +44,7 @@ pub extern "C" fn rust_main(hartid: usize, device_tree_paddr: usize) -> ! { } println!( - "Hello fucking RISCV! in hart {}, device tree @ {:#x}", + "Hello RISCV! in hart {}, device tree @ {:#x}", hartid, device_tree_vaddr ); @@ -74,10 +74,6 @@ fn others_main() -> ! { crate::kmain(); } -fn get_char_fuck() -> char { - io::getchar() -} - static AP_CAN_INIT: AtomicBool = AtomicBool::new(false); #[cfg(not(feature = "board_u540"))] diff --git a/kernel/src/shell.rs b/kernel/src/shell.rs index 1375b14..45274c8 100644 --- a/kernel/src/shell.rs +++ b/kernel/src/shell.rs @@ -19,7 +19,6 @@ pub fn add_user_shell() { // // #[cfg(not(target_arch = "x86_64"))] let init_shell = "/busybox"; //from docker-library - println!("use the fucking up busybox"); #[cfg(target_arch = "x86_64")] let init_envs = @@ -31,12 +30,10 @@ pub fn add_user_shell() { let init_args = vec!["busybox".into(), "ash".into()]; if let Ok(inode) = ROOT_INODE.lookup(init_shell) { - println!("use fucking up busybox"); processor() .manager() .add(Thread::new_user(&inode, init_shell, init_args, init_envs)); } else { - println!("not use fucking up busybox, but shell"); processor().manager().add(Thread::new_kernel(shell, 0)); } } @@ -46,7 +43,6 @@ pub fn add_user_shell() { use crate::drivers::CMDLINE; let cmdline = CMDLINE.read(); let inode = ROOT_INODE.lookup(&cmdline).unwrap(); - println!("not use the fucking up busybox"); processor().manager().add(Thread::new_user( &inode, "/busybox",