Changeset bbb99f82 in mainline


Ignore:
Timestamp:
2019-03-31T09:01:39Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68d8736
Parents:
a773b8b
Message:

Remove last x86 specifics from i8259 kernel driver

Location:
kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/amd64.c

    ra773b8b rbbb99f82  
    123123                    (i8259_t *) I8259_PIC1_BASE, IRQ_PIC1, IVT_IRQBASE,
    124124                    IVT_IRQBASE + 8);
     125
     126                /*
     127                 * Set the enable/disable IRQs handlers.
     128                 * Set the End-of-Interrupt handler.
     129                 */
     130                enable_irqs_function = pic_enable_irqs;
     131                disable_irqs_function = pic_disable_irqs;
     132                eoi_function = pic_eoi;
     133                irqs_info = "i8259";
    125134        }
    126135}
  • kernel/arch/ia32/src/ia32.c

    ra773b8b rbbb99f82  
    112112                    (i8259_t *) I8259_PIC1_BASE, IRQ_PIC1, IVT_IRQBASE,
    113113                    IVT_IRQBASE + 8);
     114
     115                /*
     116                 * Set the enable/disable IRQs handlers.
     117                 * Set the End-of-Interrupt handler.
     118                 */
     119                enable_irqs_function = pic_enable_irqs;
     120                disable_irqs_function = pic_disable_irqs;
     121                eoi_function = pic_eoi;
     122                irqs_info = "i8259";
    114123        }
    115124}
  • kernel/genarch/src/drivers/i8259/i8259.c

    ra773b8b rbbb99f82  
    8181        /*
    8282         * Register interrupt handler for the PIC spurious interrupt.
     83         *
     84         * XXX: This is currently broken. Both IRQ 7 and IRQ 15 can be spurious
     85         *      or can be actual interrupts. This needs to be detected when
     86         *      the interrupt happens by inspecting ISR.
    8387         */
    84         exc_register(VECTOR_PIC_SPUR, "pic_spurious", false,
     88        exc_register(irq0_int + 7, "pic_spurious", false,
    8589            (iroutine_t) pic_spurious);
    86 
    87         /*
    88          * Set the enable/disable IRQs handlers.
    89          * Set the End-of-Interrupt handler.
    90          */
    91         enable_irqs_function = pic_enable_irqs;
    92         disable_irqs_function = pic_disable_irqs;
    93         eoi_function = pic_eoi;
    94         irqs_info = "i8259";
    9590
    9691        pic_disable_irqs(0xffff);               /* disable all irq's */
Note: See TracChangeset for help on using the changeset viewer.