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