Changeset fbe058f in mainline


Ignore:
Timestamp:
2005-12-12T17:40:29Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ed8b3a
Parents:
e07fe0c
Message:

Cleanup of unnecessary things.

Location:
arch/mips32
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/cp0.h

    re07fe0c rfbe058f  
    8181extern __u32 cp0_badvaddr_read(void);
    8282
    83 extern volatile __u32 cp0_count_read(void);
     83extern __u32 cp0_count_read(void);
    8484extern void cp0_count_write(__u32 val);
    8585
    86 extern volatile __u32 cp0_entry_hi_read(void);
     86extern __u32 cp0_entry_hi_read(void);
    8787extern void cp0_entry_hi_write(__u32 val);
    8888
    89 extern volatile __u32 cp0_compare_read(void);
     89extern __u32 cp0_compare_read(void);
    9090extern void cp0_compare_write(__u32 val);
    9191
  • arch/mips32/src/cpu/cpu.c

    re07fe0c rfbe058f  
    109109                for (i=0;imp_data80[i].vendor;i++)
    110110                        ;
    111                 if (m->arch.imp_num & 0x7f >= i) {
     111                if ((m->arch.imp_num & 0x7f) >= i) {
    112112                        printf("imp=%d\n",m->arch.imp_num);
    113113                        return;
  • arch/mips32/src/drivers/arc.c

    re07fe0c rfbe058f  
    218218}
    219219
     220static char arc_read(chardev_t *dev)
     221{
     222        char ch;
     223        __u32 count;
     224        long result;
     225
     226        result = arc_entry->read(0, &ch, 1, &count);
     227        if (result || count!=1) {
     228                printf("Error reading from ARC keyboard.\n");
     229                cpu_halt();
     230        }
     231        if (ch == '\r')
     232                return '\n';
     233        if (ch == 0x7f)
     234                return '\b';
     235        return ch;
     236}
     237
    220238static void arc_write(chardev_t *dev, const char ch)
    221239{
     
    236254        .resume = arc_enable,
    237255        .suspend = arc_disable,
    238         .write = arc_write
     256        .write = arc_write,
     257        .read = arc_read
    239258};
    240259
  • arch/mips32/src/exception.c

    re07fe0c rfbe058f  
    143143        int cause;
    144144        int excno;
    145         __u32 epc_shift = 0;
    146145
    147146        ASSERT(CPU != NULL);
  • arch/mips32/src/interrupt.c

    re07fe0c rfbe058f  
    9494void interrupt_init(void)
    9595{
    96         int i;
    97 
    9896        int_register(TIMER_IRQ, "timer", timer_exception);
    9997        int_register(0, "swint0", swint0);
Note: See TracChangeset for help on using the changeset viewer.