fixed weird merge issues

This commit is contained in:
2025-02-22 03:29:33 +00:00
parent ae82e9c24b
commit bb5bf9115b
3 changed files with 3 additions and 14 deletions
+3 -8
View File
@@ -18,8 +18,7 @@ static IDT: Lazy<InterruptDescriptorTable> = Lazy::new(|| {
idt idt
}); });
<<<<<<< Updated upstream
=======
pub const PIC_1_OFFSET: u8 = 32; pub const PIC_1_OFFSET: u8 = 32;
pub const PIC_2_OFFSET: u8 = PIC_1_OFFSET + 8; pub const PIC_2_OFFSET: u8 = PIC_1_OFFSET + 8;
@@ -43,7 +42,7 @@ impl InterruptIndex {
} }
} }
>>>>>>> Stashed changes
pub fn init_idt() { pub fn init_idt() {
IDT.load(); IDT.load();
unsafe { unsafe {
@@ -53,10 +52,6 @@ pub fn init_idt() {
} }
extern "x86-interrupt" fn breakpoint_handler(stack_frame: InterruptStackFrame) { extern "x86-interrupt" fn breakpoint_handler(stack_frame: InterruptStackFrame) {
<<<<<<< Updated upstream
println_log!("Exception: Breakpoint\n{:#?}", stack_frame);
}
=======
serial_println!("Exception: Breakpoint\n{:#?}", stack_frame); serial_println!("Exception: Breakpoint\n{:#?}", stack_frame);
println_log!("Exception: Breakpoint\n{:#?}", stack_frame); println_log!("Exception: Breakpoint\n{:#?}", stack_frame);
} }
@@ -92,4 +87,4 @@ extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: InterruptStackFr
.notify_end_of_interrupt(InterruptIndex::Timer.as_u8()); .notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
} }
} }
>>>>>>> Stashed changes
-3
View File
@@ -55,10 +55,7 @@ pub fn boot() -> Result<(), &'static str> {
lib_serial::init()?; lib_serial::init()?;
arch::x86_64::interrupts::init_idt(); arch::x86_64::interrupts::init_idt();
<<<<<<< Updated upstream
=======
x86_64::instructions::interrupts::enable(); x86_64::instructions::interrupts::enable();
>>>>>>> Stashed changes
Ok(()) Ok(())
} }
-3
View File
@@ -37,15 +37,12 @@ unsafe extern "C" fn kmain() -> ! {
\\______/ \\______/ \\_/ \\______| \\______/ \\______/ \\_/ \\______|
" "
); );
<<<<<<< Updated upstream
=======
// for i in 0..100000 { // for i in 0..100000 {
// println!("{}", i); // println!("{}", i);
// } // }
loop {} loop {}
>>>>>>> Stashed changes
FoundryOS::hcf(); FoundryOS::hcf();
} }