Deleted Added
sdiff udiff text old ( 292073 ) new ( 292903 )
full compact
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 292073 2015-12-11 01:34:13Z 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 /* Enable L1 caches */
320 booke_enable_l1_cache();
321
322 return (ret);
323}
324
325#define RES_GRANULE 32
326extern uint32_t tlb0_miss_locks[];
327
328/* Initialise a struct pcpu. */
329void

--- 68 unchanged lines hidden ---