Changeset 50 for trunk/hal/tsar_mips32
- Timestamp:
- Jun 26, 2017, 3:15:11 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/hal_do_exceptions.c
r1 r50 95 95 ///////////////////////////////////////////////////////////////////////////////////////// 96 96 97 remote_spinlock_t exception_lock; 98 97 __attribute__((section(".kdata"))) 98 remote_spinlock_t exception_lock CONFIG_CACHE_LINE_ALIGNED; 99 99 100 100 ///////////////////////////////////////////////////////////////////////////////////////// -
trunk/hal/tsar_mips32/hal_gpt.c
r23 r50 101 101 102 102 // check page size 103 if( CONFIG_PPM_PAGE_SIZE != 4096 ) ;103 if( CONFIG_PPM_PAGE_SIZE != 4096 ) 104 104 { 105 105 printk("\n[PANIC] in %s : For TSAR, the page must be 4 Kbytes\n", __FUNCTION__ ); -
trunk/hal/tsar_mips32/hal_types.h
r16 r50 180 180 typedef uint32_t vpn_t; // Virtual Page number 181 181 182 182 183 #define XPTR_NULL 0 183 184 184 185 #define PTR_MASK 0x00000000FFFFFFFFULL 185 186 186 #define GET_CXY(xp) ((cxy_t)((xp) >> 32)) 187 #define PTR_SHIFT 32 188 189 #define GET_CXY(xp) ((cxy_t)((xp) >> PTR_SHIFT)) 187 190 188 191 #define GET_PTR(xp) ((void*)(uint32_t)((xp) & PTR_MASK)) 189 192 190 #define XPTR(cxy,ptr) (((uint64_t)(cxy) << 32) | (((uint32_t)(ptr)) & PTR_MASK)) 193 #define XPTR(cxy,ptr) (((uint64_t)(cxy) << PTR_SHIFT) | (((uint32_t)(ptr)) & PTR_MASK)) 194 191 195 192 196 #define LPA_MASK 0x00000000FFFFFFFFULL 193 197 194 #define CXY_FROM_PADDR(paddr) ((cxy_t)((paddr) >> 32)) 198 #define LPA_SHIFT 32 199 200 #define CXY_FROM_PADDR(paddr) ((cxy_t)((paddr) >> LPA_SHIFT)) 195 201 196 202 #define LPA_FROM_PADDR(paddr) (lpa_t)((paddr & LPA_MASK) 197 203 198 #define PADDR(cxy,lpa) (((uint64_t)(cxy) << 32) | (((uint64_t)(lpa)) & LPA_MASK))204 #define PADDR(cxy,lpa) (((uint64_t)(cxy) << LPA_SHIFT) | (((uint64_t)(lpa)) & LPA_MASK)) 199 205 200 206
Note: See TracChangeset
for help on using the changeset viewer.