Changeset bc73be3 in mainline for kernel/arch/mips32/src/mach/msim/msim.c
- Timestamp:
- 2019-06-27T08:51:20Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8add15e0
- Parents:
- ad40b74b (diff), aeba767 (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. - File:
-
- 1 edited
-
kernel/arch/mips32/src/mach/msim/msim.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mach/msim/msim.c
rad40b74b rbc73be3 35 35 36 36 #include <arch/mach/msim/msim.h> 37 #include <arch/mach/msim/dorder.h> 37 38 #include <console/console.h> 38 39 #include <sysinfo/sysinfo.h> 39 #include <arch/drivers/msim.h>40 40 #include <genarch/drivers/dsrln/dsrlnin.h> 41 41 #include <genarch/drivers/dsrln/dsrlnout.h> 42 42 #include <genarch/srln/srln.h> 43 #include <stdbool.h> 43 44 44 45 static void msim_init(void); … … 60 61 }; 61 62 63 static void msim_irq_handler(unsigned int i) 64 { 65 irq_t *irq = irq_dispatch_and_lock(i); 66 if (irq) { 67 irq->handler(irq); 68 irq_spinlock_unlock(&irq->lock, false); 69 } else { 70 #ifdef CONFIG_DEBUG 71 log(LF_ARCH, LVL_DEBUG, "cpu%u: spurious IRQ (irq=%u)", 72 CPU->id, i); 73 #endif 74 } 75 } 76 62 77 void msim_init(void) 63 78 { 79 irq_init(HW_INTERRUPTS, HW_INTERRUPTS); 80 81 int_handler[INT_HW0] = msim_irq_handler; 82 int_handler[INT_HW1] = msim_irq_handler; 83 int_handler[INT_HW2] = msim_irq_handler; 84 int_handler[INT_HW3] = msim_irq_handler; 85 int_handler[INT_HW4] = msim_irq_handler; 86 87 dorder_init(); 64 88 cp0_unmask_int(MSIM_DDISK_IRQ); 65 89 } … … 80 104 { 81 105 #ifdef CONFIG_MSIM_PRN 82 outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS); 106 outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS, 107 KSEG12PA(MSIM_KBD_ADDRESS)); 83 108 if (dsrlndev) 84 109 stdout_wire(dsrlndev);
Note:
See TracChangeset
for help on using the changeset viewer.
