Changeset ffc277e in mainline for arch/mips/src/mips.c
- Timestamp:
- 2005-09-10T00:52:13Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3a6c8e5
- Parents:
- b02e5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/src/mips.c
rb02e5d1 rffc277e 35 35 #include <userspace.h> 36 36 #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> 37 49 38 50 void arch_pre_mm_init(void) 39 51 { 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 40 58 /* 41 59 * Switch to BEV normal level so that exception vectors point to the kernel.
Note:
See TracChangeset
for help on using the changeset viewer.