Deleted Added
full compact
machdep.c (183319) machdep.c (186347)
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 41 unchanged lines hidden (view full) ---

50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 41 unchanged lines hidden (view full) ---

50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 183319 2008-09-24 00:28:46Z nwhitehorn $");
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 186347 2008-12-20 00:33:10Z nwhitehorn $");
59
60#include "opt_compat.h"
61#include "opt_ddb.h"
62#include "opt_kstack_pages.h"
63#include "opt_msgbuf.h"
64
65#include <sys/param.h>
66#include <sys/proc.h>

--- 219 unchanged lines hidden (view full) ---

286 */
287 pc = __pcpu;
288 pcpu_init(pc, 0, sizeof(struct pcpu));
289 pc->pc_curthread = &thread0;
290 pc->pc_cpuid = 0;
291
292 __asm __volatile("mtsprg 0, %0" :: "r"(pc));
293
59
60#include "opt_compat.h"
61#include "opt_ddb.h"
62#include "opt_kstack_pages.h"
63#include "opt_msgbuf.h"
64
65#include <sys/param.h>
66#include <sys/proc.h>

--- 219 unchanged lines hidden (view full) ---

286 */
287 pc = __pcpu;
288 pcpu_init(pc, 0, sizeof(struct pcpu));
289 pc->pc_curthread = &thread0;
290 pc->pc_cpuid = 0;
291
292 __asm __volatile("mtsprg 0, %0" :: "r"(pc));
293
294 /*
295 * Init mutexes, which we use heavily in PMAP
296 */
297
294 mutex_init();
295
296 /*
298 mutex_init();
299
300 /*
301 * Install the OF client interface
302 */
303
304 OF_bootstrap();
305
306 /*
297 * Initialize the console before printing anything.
298 */
299 cninit();
300
301 /*
302 * Complain if there is no metadata.
303 */
304 if (mdp == NULL || kmdp == NULL) {
305 printf("powerpc_init: no loader metadata.\n");
306 }
307
308 kdb_init();
309
307 * Initialize the console before printing anything.
308 */
309 cninit();
310
311 /*
312 * Complain if there is no metadata.
313 */
314 if (mdp == NULL || kmdp == NULL) {
315 printf("powerpc_init: no loader metadata.\n");
316 }
317
318 kdb_init();
319
310 kobj_machdep_init();
311
312 /*
313 * XXX: Initialize the interrupt tables.
314 * Disable translation in case the vector area
315 * hasn't been mapped (G5)
316 */
317 mtmsr(mfmsr() & ~(PSL_IR | PSL_DR));
318 isync();
319#ifdef SMP

--- 692 unchanged lines hidden ---
320 /*
321 * XXX: Initialize the interrupt tables.
322 * Disable translation in case the vector area
323 * hasn't been mapped (G5)
324 */
325 mtmsr(mfmsr() & ~(PSL_IR | PSL_DR));
326 isync();
327#ifdef SMP

--- 692 unchanged lines hidden ---