Changeset 973be64e in mainline for arch/mips32/src/mips32.c


Ignore:
Timestamp:
2005-12-10T00:19:57Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fcfac420
Parents:
705b4149
Message:

Added generic exc_register/exc_dispatch functions,
copied from ia32 architecture. Currently only mips32 uses them.

The chardev_t can now be both input & output device (was
needed for serial driver).

Broken other architectures - ia64, sparc, powerpc will not compile.

Mips32 supports input on all msim, gxemul, indy(tested emulation
in gxemul, loses characters), simics. Simics serial line
is done using polling, I was unable to make it produce
an interrupt when the key was pressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mips32.c

    r705b4149 r973be64e  
    2727 */
    2828
     29
    2930#include <arch.h>
    3031#include <arch/cp0.h>
    3132#include <arch/exception.h>
    32 #include <arch/asm/regname.h>
    3333#include <arch/asm.h>
    3434#include <mm/vm.h>
     35
    3536#include <userspace.h>
    3637#include <arch/console.h>
    3738#include <memstr.h>
     39#include <proc/thread.h>
     40#include <print.h>
     41
    3842#include <arch/interrupt.h>
    3943#include <arch/drivers/arc.h>
    40 #include <arch/drivers/keyboard.h>
    41 #include <proc/thread.h>
    42 #include <print.h>
     44#include <console/chardev.h>
     45
     46#include <arch/asm/regname.h>
    4347
    4448/* Size of the code jumping to the exception handler code
     
    5559        /* It is not assumed by default */
    5660        interrupts_disable();
     61       
     62        /* Initialize dispatch table */
     63        interrupt_init();
    5764
    5865        arc_init();
     
    8491
    8592        console_init();
    86         keyboard_init();
    8793        arc_print_memory_map();
    8894        arc_print_devices();
Note: See TracChangeset for help on using the changeset viewer.