Delete dots from output
This commit is contained in:
parent
bd2b796c50
commit
31467a940d
|
@ -45,7 +45,7 @@ extern "x86-interrupt" fn double_fault_handler(
|
|||
extern "x86-interrupt" fn timer_interrupt_handler(
|
||||
_stack_frame: InterruptStackFrame)
|
||||
{
|
||||
print!(".");
|
||||
//print!(".");
|
||||
|
||||
unsafe {
|
||||
PICS.lock()
|
||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -6,7 +6,7 @@
|
|||
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
use gros::println;
|
||||
use gros::{println, print};
|
||||
use bootloader::{BootInfo, entry_point};
|
||||
use gros::memory::BootInfoFrameAllocator;
|
||||
use gros::task::{Task, simple_executor::SimpleExecutor};
|
||||
|
@ -29,7 +29,8 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
|||
println!("{}", " | (_| | | | (_) \\__ \\");
|
||||
println!("{}", " \\__, |_| \\___/|___/");
|
||||
println!("{}", " |___/");
|
||||
|
||||
println!();
|
||||
print!("> ");
|
||||
|
||||
gros::init();
|
||||
|
||||
|
@ -43,7 +44,7 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
|||
.expect("heap initialization failed");
|
||||
|
||||
let mut executor = Executor::new();
|
||||
executor.spawn(Task::new(example_task()));
|
||||
//executor.spawn(Task::new(example_task()));
|
||||
executor.spawn(Task::new(keyboard::print_keypresses()));
|
||||
executor.run();
|
||||
|
||||
|
@ -54,6 +55,7 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
|||
gros::hlt_loop();
|
||||
}
|
||||
|
||||
/*
|
||||
async fn async_number() -> u32 {
|
||||
42
|
||||
}
|
||||
|
@ -62,7 +64,7 @@ async fn example_task() {
|
|||
let number = async_number().await;
|
||||
println!("async number: {}", number);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
/// This function is called on panic.
|
||||
#[cfg(not(test))]
|
||||
|
|
Loading…
Reference in New Issue