Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 609 → Rev 610

/kernel/trunk/arch/mips32/include/cp0.h
80,13 → 80,13
 
extern __u32 cp0_badvaddr_read(void);
 
extern volatile __u32 cp0_count_read(void);
extern __u32 cp0_count_read(void);
extern void cp0_count_write(__u32 val);
 
extern volatile __u32 cp0_entry_hi_read(void);
extern __u32 cp0_entry_hi_read(void);
extern void cp0_entry_hi_write(__u32 val);
 
extern volatile __u32 cp0_compare_read(void);
extern __u32 cp0_compare_read(void);
extern void cp0_compare_write(__u32 val);
 
extern __u32 cp0_status_read(void);
/kernel/trunk/arch/mips32/src/exception.c
142,7 → 142,6
{
int cause;
int excno;
__u32 epc_shift = 0;
 
ASSERT(CPU != NULL);
 
/kernel/trunk/arch/mips32/src/cpu/cpu.c
108,7 → 108,7
/* Count records */
for (i=0;imp_data80[i].vendor;i++)
;
if (m->arch.imp_num & 0x7f >= i) {
if ((m->arch.imp_num & 0x7f) >= i) {
printf("imp=%d\n",m->arch.imp_num);
return;
}
/kernel/trunk/arch/mips32/src/interrupt.c
93,8 → 93,6
/* Initialize basic tables for exception dispatching */
void interrupt_init(void)
{
int i;
 
int_register(TIMER_IRQ, "timer", timer_exception);
int_register(0, "swint0", swint0);
int_register(1, "swint1", swint1);
/kernel/trunk/arch/mips32/src/drivers/arc.c
217,6 → 217,24
chardev_push_character(&console, ch);
}
 
static char arc_read(chardev_t *dev)
{
char ch;
__u32 count;
long result;
 
result = arc_entry->read(0, &ch, 1, &count);
if (result || count!=1) {
printf("Error reading from ARC keyboard.\n");
cpu_halt();
}
if (ch == '\r')
return '\n';
if (ch == 0x7f)
return '\b';
return ch;
}
 
static void arc_write(chardev_t *dev, const char ch)
{
arc_putchar(ch);
235,7 → 253,8
static chardev_operations_t arc_ops = {
.resume = arc_enable,
.suspend = arc_disable,
.write = arc_write
.write = arc_write,
.read = arc_read
};
 
iroutine old_timer;