Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/oea more G5 stuff:
details: https://anonhg.NetBSD.org/src/rev/00124bd912fb
branches: trunk
changeset: 786809:00124bd912fb
user: macallan <macallan%NetBSD.org@localhost>
date: Mon May 13 00:12:01 2013 +0000
description:
more G5 stuff:
- call OF_quiesce()
- properly map the message buffer
diffstat:
sys/arch/powerpc/oea/ofwoea_machdep.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r e3f033e04955 -r 00124bd912fb sys/arch/powerpc/oea/ofwoea_machdep.c
--- a/sys/arch/powerpc/oea/ofwoea_machdep.c Sun May 12 13:50:11 2013 +0000
+++ b/sys/arch/powerpc/oea/ofwoea_machdep.c Mon May 13 00:12:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwoea_machdep.c,v 1.32 2013/04/11 17:13:15 macallan Exp $ */
+/* $NetBSD: ofwoea_machdep.c,v 1.33 2013/05/13 00:12:01 macallan Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.32 2013/04/11 17:13:15 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.33 2013/05/13 00:12:01 macallan Exp $");
#include "opt_ppcarch.h"
#include "opt_compat_netbsd.h"
@@ -174,6 +174,10 @@
model_init();
}
+ if (strcmp(model_name, "PowerMac11,2") == 0 ||
+ strcmp(model_name, "PowerMac11,1") == 0)
+ OF_quiesce();
+
/* Initialize bus_space */
ofwoea_bus_space_init();
@@ -242,7 +246,8 @@
paddr_t pa;
int i;
- pmap_setup_segment0_map(0, 0x0);
+ pmap_setup_segment0_map(0, msgbuf_paddr, msgbuf_paddr,
+ round_page(MSGBUFSIZE), 0x0);
/* Map OFW code+data */
Home |
Main Index |
Thread Index |
Old Index