Changeset ffc277e in mainline for arch/mips/include
- 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
- Location:
- arch/mips/include
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/include/asm.h
rb02e5d1 rffc277e 34 34 #include <config.h> 35 35 36 #define cpu_sleep() ; 36 37 static inline void cpu_sleep(void) 38 { 39 /* Most of the simulators do not support */ 40 /* __asm__ volatile ("wait"); */ 41 } 37 42 38 43 /** Return base address of current stack -
arch/mips/include/asm/boot.h
rb02e5d1 rffc277e 35 35 36 36 /* Kernel startup address */ 37 #define KERNEL_ STARTUP_ADDRESS 0x8000030037 #define KERNEL_LOAD_ADDRESS 0x80100000 38 38 39 39 -
arch/mips/include/byteorder.h
rb02e5d1 rffc277e 31 31 32 32 /* MIPS is little-endian */ 33 #define native_le2host(n) n 33 #ifdef BIG_ENDIAN 34 static inline __native native_le2host(__native n) 35 { 36 return ((n & 0xff) << 24) | 37 ((n & 0xff00) << 8) | 38 ((n & 0xff0000) >> 8) | 39 ((n & 0xff000000) >> 24); 40 } 41 #else 42 # define native_le2host(n) n 43 #endif 34 44 35 45 #endif -
arch/mips/include/cp0.h
rb02e5d1 rffc277e 35 35 #define cp0_status_exl_exception_bit (1<<1) 36 36 #define cp0_status_erl_error_bit (1<<2) 37 #define cp0_status_um_bit (1<<4) 37 38 #define cp0_status_bev_bootstrap_bit (1<<22) 38 #define cp0_status_ um_bit (1<<4)39 #define cp0_status_fpu_bit (1<<29) 39 40 40 41 #define cp0_status_im7_shift 15 … … 44 45 */ 45 46 #define cp0_compare_value 10000 47 48 static inline void tlbp(void) 49 { 50 __asm__ volatile ("tlbp"); 51 } 52 53 static inline void tlbr(void) 54 { 55 __asm__ volatile ("tlbr"); 56 } 57 static inline void tlbwi(void) 58 { 59 __asm__ volatile ("tlbwi"); 60 } 61 static inline void tlbwr(void) 62 { 63 __asm__ volatile ("tlbwr"); 64 } 65 66 46 67 47 68 extern __u32 cp0_index_read(void); … … 87 108 extern __u32 cp0_prid_read(void); 88 109 89 extern void tlbp(void);90 extern void tlbr(void);91 extern void tlbwi(void);92 extern void tlbwr(void);93 94 110 #endif -
arch/mips/include/exception.h
rb02e5d1 rffc277e 92 92 93 93 extern void exception(struct exception_regdump *pstate); 94 94 extern void tlb_refill_entry(void); 95 extern void exception_entry(void); 96 extern void cache_error_entry(void); 95 97 #endif -
arch/mips/include/fpu_context.h
rb02e5d1 rffc277e 33 33 34 34 struct fpu_context { 35 /* TODO: define MIPS FPU context */ 35 __native dregs[32]; 36 __native cregs[32]; 36 37 }; 37 38 38 39 40 41 39 #endif -
arch/mips/include/thread.h
rb02e5d1 rffc277e 30 30 #define __mips_THREAD_H__ 31 31 32 #define ARCH_THREAD_DATA 32 #include <arch/exception.h> 33 34 #define ARCH_THREAD_DATA struct exception_regdump *pstate 33 35 34 36 #endif
Note:
See TracChangeset
for help on using the changeset viewer.