Changeset 3156582 in mainline for arch/mips/src/console.c


Ignore:
Timestamp:
2005-09-11T12:48:42Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e3fb24c
Parents:
8491c48
Message:

Updated symtab so that it works correctly with BE architectures.
Changed compiler for BE MIPS to be mips-sgi-irix5, because
mipsel -EB does not behave correctly.
Doc updates to amd64.
Added ARC BIOS support to MIPS architecture. Putchar works correctly,
kernel passed FPU & some rwlock tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/src/console.c

    r8491c48 r3156582  
    3232#include <arch/console.h>
    3333#include <arch.h>
     34#include <arch/drivers/arc.h>
     35#include <arch/arch.h>
    3436
    35 static void arc_putchar(const char ch)
    36 {
    37         int cnt;
    38         pri_t pri;
    39 
    40         /* TODO: Should be spinlock? */
    41         pri = cpu_priority_high();
    42         bios_write(1, &ch, 1, &cnt);
    43         cpu_priority_restore(pri);
    44        
    45 }
    46 
     37/** Putchar that works with MSIM & gxemul */
    4738static void cons_putchar(const char ch)
    4839{
     
    5041}
    5142
    52 
     43/** Putchar that works with simics */
    5344static void serial_putchar(const char ch)
    5445{
     
    6859void console_init(void)
    6960{
     61        if (arc_enabled())
     62                putchar_func = arc_putchar;
    7063        /* The LSR on the start usually contains this value */
    71         if (*SERIAL_LSR == 0x60)
     64        else if (*SERIAL_LSR == 0x60)
    7265                putchar_func = serial_putchar;
    7366        else
Note: See TracChangeset for help on using the changeset viewer.