Changeset 0f74869 in mainline for kernel/arch/sparc64/src


Ignore:
Timestamp:
2009-02-22T15:20:43Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9f9a13
Parents:
e7abb0e
Message:

Unbreak sparc64.
Due to the lack of userspace bus drivers for the z8530 and ns16550,
we are currently handling exactly one interrupt from these devices
in userspace.

Location:
kernel/arch/sparc64/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/console.c

    re7abb0e r0f74869  
    163163#endif
    164164        switch (kbd_type) {
    165 #ifdef CONFIG_Z8530
    166         case KBD_Z8530:
    167                 z8530_grab();
    168                 break;
    169 #endif
    170 #ifdef CONFIG_NS16550
    171         case KBD_NS16550:
    172                 ns16550_grab();
    173                 break;
    174 #endif
    175165#ifdef CONFIG_SGCN
    176166        case KBD_SGCN:
     
    189179{
    190180        switch (kbd_type) {
    191 #ifdef CONFIG_Z8530
    192         case KBD_Z8530:
    193                 z8530_release();
    194                 break;
    195 #endif
    196 #ifdef CONFIG_NS16550
    197         case KBD_NS16550:
    198                 ns16550_release();
    199                 break;
    200 #endif
    201181#ifdef CONFIG_SGCN
    202182        case KBD_SGCN:
  • kernel/arch/sparc64/src/drivers/kbd.c

    re7abb0e r0f74869  
    149149#ifdef CONFIG_Z8530
    150150        case KBD_Z8530:
    151                 z8530_init(device_assign_devno(),
    152                     hw_map(aligned_addr, offset + size) + offset, inr, cir, cir_arg);
     151                (void) z8530_init((z8530_t *) hw_map(aligned_addr,
     152                    offset + size) + offset, device_assign_devno(), inr, cir,
     153                    cir_arg);
    153154                break;
    154155#endif
  • kernel/arch/sparc64/src/drivers/sgcn.c

    re7abb0e r0f74869  
    382382       
    383383        if (*in_rdptr_ptr != *in_wrptr_ptr) {
    384                 if (sgcn_irq.notif_cfg.notify && sgcn_irq.notif_cfg.answerbox) {
    385                         ipc_irq_send_notif(&sgcn_irq);
    386                         spinlock_unlock(&sgcn_irq.lock);
    387                         interrupts_restore(ipl);
    388                         spinlock_unlock(&sgcn_input_lock);
    389                         return;
    390                 }
     384                /* XXX: send notification to userspace */
    391385        }
    392386       
Note: See TracChangeset for help on using the changeset viewer.