- Timestamp:
- May 10, 2017, 5:04:01 PM (8 years ago)
- Location:
- trunk/hal
- Files:
-
- 11 added
- 3 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_atomic.h
r2 r16 25 25 #define _HAL_ATOMIC_H_ 26 26 27 #include < almos_config.h>27 #include <kernel_config.h> 28 28 #include <hal_types.h> 29 29 -
trunk/hal/generic/hal_special.h
r2 r16 116 116 void hal_fixed_delay(); 117 117 118 /***************************************************************************************** 119 * This function returns informations on MMU exceptions : 120 * @ mmu_ins_excp_code : [out] instruction fetch exception code 121 * @ mmu_ins_bad_vaddr : [out] instruction fetch faulty virtual address 122 * @ mmu_dat_excp_code : [out] data access exception code 123 * @ mmu_dat_bad_vaddr : [out] data access faulty virtual address 124 ****************************************************************************************/ 125 void hal_get_mmu_excp( intptr_t * mmu_ins_excp_code, 126 intptr_t * mmu_ins_bad_vaddr, 127 intptr_t * mmu_dat_excp_code, 128 intptr_t * mmu_dat_bad_vaddr ); 118 129 119 130 -
trunk/hal/i386/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 #include <stdint.h> 29 29 -
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.