Changeset ffc277e in mainline for arch/mips/src/mips.c


Ignore:
Timestamp:
2005-09-10T00:52:13Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3a6c8e5
Parents:
b02e5d1
Message:

Cleanup of makefiles to have common options in one main makefile.

Add simple build process for different simulators for MIPS.
Added FPU context & lazy FPU context switching to MIPS.
Cleanup of MIPS linker script.
Moved MIPS kernel above 1MB. Not tested on real machine yet, but it might help.

There is something broken with gcc inlined memcpy (either simulator or gcc), it is disabled on BigEndian mips now.

File:
1 edited

Legend:

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

    rb02e5d1 rffc277e  
    3535#include <userspace.h>
    3636#include <arch/console.h>
     37#include <memstr.h>
     38
     39/* Size of the code jumping to the exception handler code
     40 * - J+NOP
     41 */
     42#define EXCEPTION_JUMP_SIZE    8
     43
     44#define TLB_EXC ((char *) 0x80000000)
     45#define NORM_EXC ((char *) 0x80000180)
     46#define CACHE_EXC ((char *) 0x80000100)
     47
     48#include <arch/debug.h>
    3749
    3850void arch_pre_mm_init(void)
    3951{
     52        /* Copy the exception vectors to the right places */
     53        memcpy(TLB_EXC, (char *)tlb_refill_entry, EXCEPTION_JUMP_SIZE);
     54        memcpy(NORM_EXC, (char *)exception_entry, EXCEPTION_JUMP_SIZE);
     55        memcpy(CACHE_EXC, (char *)cache_error_entry, EXCEPTION_JUMP_SIZE);
     56
     57
    4058        /*
    4159         * Switch to BEV normal level so that exception vectors point to the kernel.
Note: See TracChangeset for help on using the changeset viewer.