Changeset a1493d9 in mainline
- Timestamp:
- 2005-09-10T17:54:53Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8491c48
- Parents:
- 24241cf
- Location:
- arch/mips
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/Makefile.inc
r24241cf ra1493d9 29 29 CFLAGS += -DHAVE_FPU -DFPU_LAZY -mips3 30 30 BFD = ecoff-littlemips 31 KERNEL_LOAD_ADDRESS = 0x80 01000031 KERNEL_LOAD_ADDRESS = 0x80100000 32 32 endif 33 33 … … 35 35 CFLAGS += -EB -mmemcpy -DBIG_ENDIAN -DHAVE_FPU -DFPU_LAZY -mips3 36 36 BFD = ecoff-bigmips 37 KERNEL_LOAD_ADDRESS = 0x80 01000037 KERNEL_LOAD_ADDRESS = 0x80100000 38 38 endif 39 39 … … 43 43 BFD = binary 44 44 CFLAGS += -msoft-float -march=4kc 45 KERNEL_LOAD_ADDRESS = 0x80 01000045 KERNEL_LOAD_ADDRESS = 0x80100000 46 46 endif 47 47 … … 51 51 BFD = elf32-little 52 52 CFLAGS += -msoft-float -mips3 53 KERNEL_LOAD_ADDRESS = 0x80 01000053 KERNEL_LOAD_ADDRESS = 0x80100000 54 54 endif 55 55 -
arch/mips/boot/boot.S
r24241cf ra1493d9 36 36 37 37 #ifndef KERNEL_LOAD_ADDRESS 38 # define KERNEL_LOAD_ADDRESS 0x80 01000038 # define KERNEL_LOAD_ADDRESS 0x80100000 39 39 #endif 40 40 -
arch/mips/include/cp0.h
r24241cf ra1493d9 41 41 #define cp0_status_im_shift 8 42 42 #define cp0_status_im_mask 0xff00 43 44 #define cp0_cause_excno(cause) ((cause >> 2) & 0x1f) 45 #define cp0_cause_coperr(cause) ((cause >> 28) & 0x3) 46 47 #define fpu_cop_id 1 43 48 44 49 /* -
arch/mips/src/exception.c
r24241cf ra1493d9 37 37 void exception(struct exception_regdump *pstate) 38 38 { 39 int cause; 39 40 int excno; 40 41 __u32 epc_shift = 0; … … 60 61 THREAD->pstate = pstate; 61 62 63 cause = cp0_cause_read(); 64 excno = cp0_cause_excno(cause); 62 65 /* decode exception number and process the exception */ 63 switch (excno = (cp0_cause_read() >> 2) & 0x1f) {66 switch (excno) { 64 67 case EXC_Int: 65 68 interrupt(); … … 71 74 case EXC_CpU: 72 75 #ifdef FPU_LAZY 73 scheduler_fpu_lazy_request();74 #else 75 panic("unhandled Coprocessor Unusable Exception\n");76 if (cp0_cause_coperr(cause) == fpu_cop_id) 77 scheduler_fpu_lazy_request(); 78 else 76 79 #endif 80 panic("unhandled Coprocessor Unusable Exception\n"); 77 81 break; 78 82 case EXC_Mod: -
arch/mips/src/mips.c
r24241cf ra1493d9 38 38 #include <arch/interrupt.h> 39 39 40 #include <print.h> 41 40 42 /* Size of the code jumping to the exception handler code 41 43 * - J+NOP … … 47 49 #define CACHE_EXC ((char *) 0x80000100) 48 50 49 #include <arch/debug.h>50 51 #include <print.h>52 51 void arch_pre_mm_init(void) 53 52 {
Note:
See TracChangeset
for help on using the changeset viewer.