Changeset 3e828ea in mainline for kernel/arch/amd64/src/amd64.c


Ignore:
Timestamp:
2019-09-23T12:49:29Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be2358
Parents:
9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
Message:

Merge changes from master, especially Meson build

File:
1 edited

Legend:

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

    r9259d20 r3e828ea  
    6060#include <arch/vreg.h>
    6161#include <arch/kseg.h>
     62#include <genarch/pic/pic_ops.h>
    6263
    6364#ifdef CONFIG_SMP
     
    121122                /* PIC */
    122123                i8259_init((i8259_t *) I8259_PIC0_BASE,
    123                     (i8259_t *) I8259_PIC1_BASE, IRQ_PIC1, IVT_IRQBASE,
    124                     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";
     124                    (i8259_t *) I8259_PIC1_BASE, IVT_IRQBASE);
     125
     126                /* Set PIC operations. */
     127                pic_ops = &i8259_pic_ops;
    134128        }
    135129}
     
    210204                        indev_t *kbrd = kbrd_wire(kbrd_instance, sink);
    211205                        i8042_wire(i8042_instance, kbrd);
    212                         trap_virtual_enable_irqs(1 << IRQ_KBD);
    213                         trap_virtual_enable_irqs(1 << IRQ_MOUSE);
     206                        pic_ops->enable_irqs(1 << IRQ_KBD);
     207                        pic_ops->enable_irqs(1 << IRQ_MOUSE);
    214208                }
    215209        }
     
    236230                        indev_t *srln = srln_wire(srln_instance, sink);
    237231                        ns16550_wire(ns16550_instance, srln);
    238                         trap_virtual_enable_irqs(1 << IRQ_NS16550);
     232                        pic_ops->enable_irqs(1 << IRQ_NS16550);
    239233                }
    240234#endif
     
    247241#endif
    248242
    249         if (irqs_info != NULL)
    250                 sysinfo_set_item_val(irqs_info, NULL, true);
     243        sysinfo_set_item_val(pic_ops->get_name(), NULL, true);
    251244}
    252245
Note: See TracChangeset for help on using the changeset viewer.