close #2
This commit is contained in:
parent
5f40aeeae5
commit
0849f24628
2 changed files with 6 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ pub fn kmain() -> ! {
|
|||
// heap avalaible for tracking free'd frames
|
||||
memory::init_noncore();
|
||||
|
||||
// x86::instructions::interrupts::int3();
|
||||
x86::instructions::interrupts::int3();
|
||||
|
||||
// fn stack_overflow() { stack_overflow(); }
|
||||
// stack_overflow();
|
||||
|
|
|
|||
|
|
@ -180,8 +180,10 @@ impl Writer {
|
|||
}
|
||||
}
|
||||
|
||||
for col in 0..BUFFER_COLS / 2 {
|
||||
self.buffer[((BUFFER_ROWS - 1) * BUFFER_COLS) + (col * 2)] = b' ';
|
||||
for col in (0..BUFFER_COLS / 2).map(|x| x * 2) {
|
||||
self.buffer[((BUFFER_ROWS - 1) * BUFFER_COLS) + (col)] = b' ';
|
||||
self.buffer[((BUFFER_ROWS - 1) * BUFFER_COLS) + (col + 1)] =
|
||||
ColorCode::new(Color::White, Color::Black).0;
|
||||
}
|
||||
|
||||
self.buffer_pos = (BUFFER_ROWS - 1) * BUFFER_COLS;
|
||||
|
|
@ -200,7 +202,7 @@ impl fmt::Write for Writer {
|
|||
}
|
||||
|
||||
pub fn init() {
|
||||
set_color!(White, Cyan);
|
||||
set_color!(Yellow, Red);
|
||||
print!(
|
||||
"{}{}{}{}{}{}{}{}{}{}{}{}{}{}",
|
||||
format_args!("{: ^80}", r#" ,--, "#),
|
||||
|
|
@ -218,7 +220,6 @@ pub fn init() {
|
|||
format_args!("{: ^80}", r#" ' ,/ ; | .' "#),
|
||||
format_args!("{: ^80}", r#" '--' `---' "#)
|
||||
);
|
||||
set_color!();
|
||||
unsafe {
|
||||
VGA.prompt();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue