makefile gdb
This commit is contained in:
parent
01fb8e1667
commit
44e6787e2e
2 changed files with 17 additions and 18 deletions
|
|
@ -27,7 +27,7 @@ asm_source := $(wildcard src/arch/$(arch)/*.asm)
|
|||
asm_object := $(patsubst src/arch/$(arch)/%.asm, build/arch/$(arch)/%.o, $(asm_source))
|
||||
|
||||
KERNEL_RUN := $(QEMU) -curses -cdrom $(iso)
|
||||
MONITOR := sleep 0.5; telnet 127.0.0.1 $(PORT); kill \`ps -x | grep gdb | head -n 2 | tail -n 1 | cut -d \ -f 2 \`
|
||||
MONITOR := sleep 0.5; telnet 127.0.0.1 $(PORT); kill \`ps -x | grep gdb | head -n 2 | tail -n 1 | cut -d \ -f 1 \`
|
||||
GDB := gdb -q -ex \"target remote localhost:$(PORTG)\" -ex \"continue\"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -22,24 +22,23 @@ pub extern fn kmain() -> ! {
|
|||
use vga_buffer::ColorCode;
|
||||
|
||||
WRITER.lock().reset_screen();
|
||||
WRITER.lock().color_code = ColorCode::new(Color::Yellow, Color::Black);
|
||||
println!(r#" ,--, "#);
|
||||
println!(r#" ,--.'| ,----, "#);
|
||||
println!(r#" ,--, | : .' .' \ "#);
|
||||
println!(r#",---.'| : ' ,----,' | "#);
|
||||
println!(r#"; : | | ; | : . ; "#);
|
||||
println!(r#"| | : _' | ; |.' / "#);
|
||||
println!(r#": : |.' | `----'/ ; "#);
|
||||
println!(r#"| ' ' ; : / ; / "#);
|
||||
println!(r#"\ \ .'. | ; / /-, "#);
|
||||
println!(r#" `---`: | ' / / /.`| "#);
|
||||
println!(r#" ' ; |./__; : "#);
|
||||
println!(r#" | : ;| : .' "#);
|
||||
println!(r#" ' ,/ ; | .' "#);
|
||||
println!(r#" '--' `---' "#);
|
||||
WRITER.lock().color_code = ColorCode::new(Color::White, Color::Black);
|
||||
println!(">> Kernel startup...");
|
||||
println!(">> Kernel startup...");
|
||||
|
||||
WRITER.lock().color_code = ColorCode::new(Color::Blue, Color::Yellow);
|
||||
println!(">> Kernel startup...");
|
||||
println!(">> Kernel startup...");
|
||||
println!(">> Kernel startup...");
|
||||
|
||||
WRITER.lock().color_code = ColorCode::new(Color::Red, Color::Green);
|
||||
println!(">> Kernel startup...");
|
||||
print!("\n");
|
||||
println!(">> Kernel startup...");
|
||||
print!("\n");
|
||||
println!(">> Kernel startup...");
|
||||
print!("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
|
||||
|
||||
// WRITER.lock().color_code = ColorCode::new(Color::White, Color::Black);
|
||||
|
||||
loop {
|
||||
let control = unsafe { cpuio::inb(0x64) };
|
||||
if (control & 1) == 1 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue