fixed interrupts (temporary, we need to do a real fix for this)
This commit is contained in:
@@ -127,7 +127,7 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(
|
|||||||
extern "x86-interrupt" fn timer_interrupt_handler(
|
extern "x86-interrupt" fn timer_interrupt_handler(
|
||||||
_stack_frame: InterruptStackFrame,
|
_stack_frame: InterruptStackFrame,
|
||||||
) {
|
) {
|
||||||
debug!("Timer Interrupt");
|
// debug!("Timer Interrupt");
|
||||||
unsafe {
|
unsafe {
|
||||||
PICS.lock()
|
PICS.lock()
|
||||||
.notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
|
.notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ extern "C" fn kmain() -> ! {
|
|||||||
}
|
}
|
||||||
println_log!(" [ Kernel Initialised Successfully ] ");
|
println_log!(" [ Kernel Initialised Successfully ] ");
|
||||||
|
|
||||||
|
// println!("TESTING :: Allocation");
|
||||||
|
// let somevec = vec![0; 1_000_000];
|
||||||
|
// println!("{:?}", somevec);
|
||||||
|
// println!("{}", somevec.len());
|
||||||
|
// println!("PASSED!");
|
||||||
|
|
||||||
|
// test1();
|
||||||
|
|
||||||
let mut executor = Executor::new();
|
let mut executor = Executor::new();
|
||||||
executor.spawn(Task::new(shell()));
|
executor.spawn(Task::new(shell()));
|
||||||
executor.run()
|
executor.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user