fat_io_lib finally works, implement virtual partition devices, manage devices via string keys
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
This commit is contained in:
@@ -177,18 +177,18 @@ void intr_handler (void* stack_ptr) {
|
||||
|
||||
struct saved_regs* regs = stack_ptr;
|
||||
|
||||
spin_lock (&thiscpu->lock);
|
||||
struct proc* proc_current = thiscpu->proc_current;
|
||||
spin_lock (&proc_current->lock);
|
||||
|
||||
memcpy (&proc_current->pdata.regs, regs, sizeof (struct saved_regs));
|
||||
|
||||
spin_unlock (&proc_current->lock);
|
||||
spin_unlock (&thiscpu->lock);
|
||||
|
||||
if (regs->trap <= 31) {
|
||||
intr_exception (regs);
|
||||
} else {
|
||||
spin_lock (&thiscpu->lock);
|
||||
struct proc* proc_current = thiscpu->proc_current;
|
||||
spin_lock (&proc_current->lock);
|
||||
|
||||
memcpy (&proc_current->pdata.regs, regs, sizeof (struct saved_regs));
|
||||
|
||||
spin_unlock (&proc_current->lock);
|
||||
spin_unlock (&thiscpu->lock);
|
||||
|
||||
lapic_eoi ();
|
||||
|
||||
struct irq* irq = irq_find (regs->trap);
|
||||
|
||||
Reference in New Issue
Block a user