1/*- 2 * Copyright (C) 2006-2012 Semihalf 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 65 unchanged lines hidden (view full) --- 74 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 75 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 76 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 77 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 78 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 79 */ 80 81#include <sys/cdefs.h> |
82__FBSDID("$FreeBSD: head/sys/powerpc/booke/booke_machdep.c 292903 2015-12-30 03:43:25Z jhibbits $"); |
83 84#include "opt_compat.h" 85#include "opt_ddb.h" 86#include "opt_hwpmc_hooks.h" 87#include "opt_kstack_pages.h" 88#include "opt_platform.h" 89 90#include <sys/cdefs.h> --- 220 unchanged lines hidden (view full) --- 311 mdp = NULL; 312 } else if (arg1 > (uintptr_t)kernel_text) /* FreeBSD loader */ 313 mdp = (void *)arg1; 314 else /* U-Boot */ 315 mdp = NULL; 316 317 ret = powerpc_init(dtbp, 0, 0, mdp); 318 |
319 /* Default to 32 byte cache line size. */ 320 switch ((mfpvr()) >> 16) { 321 case FSL_E500mc: 322 case FSL_E5500: 323 case FSL_E6500: 324 cacheline_size = 64; 325 break; 326 } 327 328 /* Enable caches */ |
329 booke_enable_l1_cache(); |
330 booke_enable_l2_cache(); |
331 |
332 booke_enable_bpred(); 333 |
334 return (ret); 335} 336 337#define RES_GRANULE 32 338extern uint32_t tlb0_miss_locks[]; 339 340/* Initialise a struct pcpu. */ 341void --- 68 unchanged lines hidden --- |