Changeset 16 for trunk/hal/tsar_mips32
- Timestamp:
- May 10, 2017, 5:04:01 PM (8 years ago)
- Location:
- trunk/hal/tsar_mips32
- Files:
-
- 7 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/hal_special.c
r1 r16 38 38 asm volatile ("mfc0 %0, $15, 1" : "=&r" (proc_id)); 39 39 40 return (proc_id & 0x FFF); // at most 4096 cores...40 return (proc_id & 0x3FF); // 4/4/2 format for TSAR 41 41 } 42 42 … … 186 186 } 187 187 188 189 190 188 ////////////////////////////////////////////////// 189 void hal_get_mmu_excp( intptr_t * mmu_ins_excp_code, 190 intptr_t * mmu_ins_bad_vaddr, 191 intptr_t * mmu_dat_excp_code, 192 intptr_t * mmu_dat_bad_vaddr ) 193 { 194 asm volatile 195 ( "mfc2 %0, $11 \n" 196 "mfc2 %1, $13 \n" 197 "mfc2 %2, $12 \n" 198 "mfc2 %3, $14 \n" 199 : "=&r"(mmu_ins_excp_code), 200 "=&r"(mmu_ins_bad_vaddr), 201 "=&r"(mmu_dat_excp_code), 202 "=&r"(mmu_dat_bad_vaddr) ); 203 } -
trunk/hal/tsar_mips32/hal_types.h
r8 r16 25 25 #define HAL_TYPES_H_ 26 26 27 #include < almos_config.h>27 #include <kernel_config.h> 28 28 29 29 #ifndef NULL … … 81 81 **************************************************************************/ 82 82 83 typedef uint64_t c lock_t; // for cycle counters83 typedef uint64_t cycle_t; // for cycle counters 84 84 85 85 /*************************************************************************** … … 144 144 __attribute__((packed)) cacheline_t; 145 145 146 #define CACHELINE_ALIGNED __attribute__((aligned(CONFIG_CACHE_LINE_SIZE)))147 148 146 /*************************************************************************** 149 147 * Address types and macros !!! hardware dependant !!!
Note: See TracChangeset
for help on using the changeset viewer.