Changeset 6da1013f in mainline for kernel/arch/ia64/src/ski


Ignore:
Timestamp:
2009-02-12T20:09:19Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84266669
Parents:
7004747
Message:

simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ski/ski.c

    r7004747 r6da1013f  
    4747#include <arch/drivers/kbd.h>
    4848
    49 #define SKI_KBD_INR     0
     49#define SKI_KBD_INR  0
    5050
    5151static irq_t ski_kbd_irq;
     
    115115{
    116116        int ch;
    117 
    118         while(!(ch = ski_getchar()))
    119                 ;
     117       
     118        while(!(ch = ski_getchar()));
     119       
    120120        if (ch == '\r')
    121121                ch = '\n';
     
    129129        static char last;
    130130        ipl_t ipl;
    131 
     131       
    132132        ipl = interrupts_disable();
    133 
     133       
    134134        if (kbd_disabled) {
    135135                interrupts_restore(ipl);
    136136                return;
    137137        }
    138                
     138       
    139139        spinlock_lock(&ski_kbd_irq.lock);
    140 
     140       
    141141        ch = ski_getchar();
    142142        if(ch == '\r')
     
    178178static void ski_kbd_disable(chardev_t *d)
    179179{
    180         kbd_disabled = true;   
     180        kbd_disabled = true;
    181181}
    182182
Note: See TracChangeset for help on using the changeset viewer.