- Timestamp:
- 2018-04-12T16:27:17Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- Location:
- boot
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/mm.c
r76d0981d r3bacee1 43 43 { 44 44 unsigned log = 0; 45 while (val >> log++); 45 while (val >> log++) 46 ; 46 47 return log - 2; 47 48 } … … 70 71 const uint32_t cinfo = CLIDR_read(); 71 72 for (unsigned i = 0; i < 7; ++i) { 72 switch (CLIDR_CACHE(i, cinfo)) 73 { 73 switch (CLIDR_CACHE(i, cinfo)) { 74 74 case CLIDR_DCACHE_ONLY: 75 75 case CLIDR_SEP_CACHE: … … 78 78 } 79 79 } 80 asm volatile ( "dsb\n");80 asm volatile ("dsb\n"); 81 81 ICIALLU_write(0); 82 asm volatile ( "isb\n");82 asm volatile ("isb\n"); 83 83 } 84 84 #endif … … 88 88 { 89 89 asm volatile ( 90 91 92 93 90 "mrc p15, 0, r0, c1, c0, 0\n" 91 "bic r0, r0, #1\n" 92 "mcr p15, 0, r0, c1, c0, 0\n" 93 ::: "r0" 94 94 ); 95 95 } … … 135 135 * 136 136 */ 137 static void init_ptl0_section(pte_level0_section_t *pte,137 static void init_ptl0_section(pte_level0_section_t *pte, 138 138 pfn_t frame) 139 139 { … … 204 204 asm volatile ( 205 205 /* Behave as a client of domains */ 206 207 206 "ldr r0, =0x55555555\n" 207 "mcr p15, 0, r0, c3, c0, 0\n" 208 208 209 209 /* Current settings */ 210 210 "mrc p15, 0, r0, c1, c0, 0\n" 211 211 212 212 /* Enable ICache, DCache, BPredictors and MMU, … … 217 217 */ 218 218 #ifdef PROCESSOR_ARCH_armv6 219 219 "ldr r1, =0x00801805\n" 220 220 #else 221 222 #endif 223 224 221 "ldr r1, =0x00001805\n" 222 #endif 223 224 "orr r0, r0, r1\n" 225 225 226 226 /* Invalidate the TLB content before turning on the MMU. 227 227 * ARMv7-A Reference manual, B3.10.3 228 228 */ 229 229 "mcr p15, 0, r0, c8, c7, 0\n" 230 230 231 231 /* Store settings, enable the MMU */ 232 233 232 "mcr p15, 0, r0, c1, c0, 0\n" 233 ::: "r0", "r1" 234 234 ); 235 235 } -
boot/arch/ppc32/src/main.c
r76d0981d r3bacee1 122 122 123 123 uintptr_t balloc_start = ALIGN_UP(top, PAGE_SIZE); 124 size_t pages = (balloc_start + ALIGN_UP(BALLOC_MAX_SIZE, PAGE_SIZE)) 125 >>PAGE_WIDTH;124 size_t pages = (balloc_start + ALIGN_UP(BALLOC_MAX_SIZE, PAGE_SIZE)) >> 125 PAGE_WIDTH; 126 126 void *transtable; 127 127 void *transtable_pa; -
boot/arch/sparc64/src/ofw.c
r76d0981d r3bacee1 88 88 * "cpuid" for US-IV 89 89 */ 90 if ((ofw_get_property(child, "upa-portid", &mid, sizeof(mid)) <= 0) 91 && (ofw_get_property(child, "portid", &mid, sizeof(mid)) <= 0)92 &&(ofw_get_property(child, "cpuid", &mid, sizeof(mid)) <= 0))90 if ((ofw_get_property(child, "upa-portid", &mid, sizeof(mid)) <= 0) && 91 (ofw_get_property(child, "portid", &mid, sizeof(mid)) <= 0) && 92 (ofw_get_property(child, "cpuid", &mid, sizeof(mid)) <= 0)) 93 93 continue; 94 94 … … 117 117 118 118 asm volatile ( 119 120 121 122 119 "ldxa [%[zero]] %[asi], %[current_mid]\n" 120 : [current_mid] "=r" (current_mid) 121 : [zero] "r" (0), 122 [asi] "i" (ASI_ICBUS_CONFIG) 123 123 ); 124 124 -
boot/genarch/src/division.c
r76d0981d r3bacee1 56 56 for (; steps > 0; steps--) { 57 57 /* shift one bit to remainder */ 58 *remainder = ((*remainder) << 1) | (( 58 *remainder = ((*remainder) << 1) | ((a >> 31) & 0x1); 59 59 result <<= 1; 60 60 -
boot/generic/src/inflate.c
r76d0981d r3bacee1 418 418 * 419 419 */ 420 static int inflate_codes(inflate_state_t *state, huffman_t *len_code,421 huffman_t *dist_code)420 static int inflate_codes(inflate_state_t *state, huffman_t *len_code, 421 huffman_t *dist_code) 422 422 { 423 423 uint16_t symbol; … … 460 460 while (len > 0) { 461 461 /* Copy len bytes from distance bytes back */ 462 state->dest[state->destcnt] 463 =state->dest[state->destcnt - dist];462 state->dest[state->destcnt] = 463 state->dest[state->destcnt - dist]; 464 464 state->destcnt++; 465 465 len--; … … 527 527 CHECK_OVERRUN(*state); 528 528 529 if ((nlen > MAX_LITLEN) || (ndist > MAX_DIST) 530 ||(ncode > MAX_ORDER))529 if ((nlen > MAX_LITLEN) || (ndist > MAX_DIST) || 530 (ncode > MAX_ORDER)) 531 531 return EINVAL; 532 532
Note:
See TracChangeset
for help on using the changeset viewer.