From 318748a9d0347c7e46267462d88e2733fd4b2db1 Mon Sep 17 00:00:00 2001 From: manu Date: Sat, 3 Jul 2004 17:29:17 +0000 Subject: [PATCH] Wrong argument to memset for bzero in commpage. --- sys/compat/darwin/darwin_commpage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/darwin/darwin_commpage.c b/sys/compat/darwin/darwin_commpage.c index 808776ef9a7c..5464af86a852 100644 --- a/sys/compat/darwin/darwin_commpage.c +++ b/sys/compat/darwin/darwin_commpage.c @@ -1,4 +1,4 @@ -/* $NetBSD: darwin_commpage.c,v 1.2 2004/07/03 16:47:13 manu Exp $ */ +/* $NetBSD: darwin_commpage.c,v 1.3 2004/07/03 17:29:17 manu Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: darwin_commpage.c,v 1.2 2004/07/03 16:47:13 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: darwin_commpage.c,v 1.3 2004/07/03 17:29:17 manu Exp $"); #include #include @@ -210,8 +210,8 @@ darwin_commpage_init(dcp) /* dcp->dcp_spinlock_relinquish */ #ifdef __powerpc__ - bcopy_glue[0] = 0x38000000; /* li r0,0 */ bcopy_glue[1] = 0x7c852378; /* mr r5,r4 */ + bcopy_glue[0] = 0x38800000; /* li r4,0 */ memcpy(&dcp->dcp_bzero[0], (void *)bcopy_glue, sizeof(bcopy_glue)); memcpy(&dcp->dcp_bzero[8], (void *)memset, sizeof(dcp->dcp_bzero) - 8); #endif