Changeset 0c33687a in mainline


Ignore:
Timestamp:
2009-02-21T20:51:30Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e78136a
Parents:
21df2e5
Message:

Unbreak mips32 candidate.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/drivers/msim.c

    r21df2e5 r0c33687a  
    3434
    3535#include <interrupt.h>
    36 #include <ipc/irq.h>
    3736#include <console/chardev.h>
    3837#include <arch/drivers/msim.h>
     
    9695static void msim_irq_handler(irq_t *irq)
    9796{
    98         if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
    99                 ipc_irq_send_notif(irq);
    100         else {
    101                 char ch = 0;
     97        char ch = 0;
    10298               
    103                 ch = *((char *) MSIM_KBD_ADDRESS);
    104                 if (ch =='\r')
    105                         ch = '\n';
    106                 if (ch == 0x7f)
    107                         ch = '\b';
    108                 chardev_push_character(&console, ch);
    109         }
     99        ch = *((char *) MSIM_KBD_ADDRESS);
     100        if (ch =='\r')
     101                ch = '\n';
     102        if (ch == 0x7f)
     103                ch = '\b';
     104        chardev_push_character(&console, ch);
    110105}
    111106
  • kernel/arch/mips32/src/drivers/serial.c

    r21df2e5 r0c33687a  
    3535#include <interrupt.h>
    3636#include <arch/cp0.h>
    37 #include <ipc/irq.h>
    3837#include <arch/drivers/serial.h>
    3938#include <console/chardev.h>
     
    115114static void serial_irq_handler(irq_t *irq)
    116115{
    117         if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
    118                 ipc_irq_send_notif(irq);
    119         else
    120                 serial_handler();
     116        serial_handler();
    121117}
    122118
  • uspace/srv/kbd/port/msim.c

    r21df2e5 r0c33687a  
    4141#include <kbd.h>
    4242
    43 irq_cmd_t msim_cmds[1] = {
    44         { CMD_MEM_READ_1, (void *) 0, 0, 2 }
     43irq_cmd_t msim_cmds[] = {
     44        {
     45                .cmd = CMD_PIO_READ_8,
     46                .addr = (void *) 0,     /* will be patched in run-time */
     47                .dstarg = 2
     48        },
     49        {
     50                .cmd = CMD_ACCEPT
     51        }
     52       
    4553};
    4654
    4755irq_code_t msim_kbd = {
    48         1,
     56        sizeof(msim_cmds) / sizeof(irq_cmd_t),
    4957        msim_cmds
    5058};
Note: See TracChangeset for help on using the changeset viewer.