From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753753AbZIXOnc (ORCPT ); Thu, 24 Sep 2009 10:43:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753697AbZIXOnb (ORCPT ); Thu, 24 Sep 2009 10:43:31 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:48365 "EHLO smtp.polymtl.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753695AbZIXOn3 (ORCPT ); Thu, 24 Sep 2009 10:43:29 -0400 Message-Id: <20090924133359.734558666@polymtl.ca> References: <20090924132626.485545323@polymtl.ca> User-Agent: quilt/0.46-1 Date: Thu, 24 Sep 2009 09:26:31 -0400 From: Mathieu Desnoyers To: Ingo Molnar , linux-kernel@vger.kernel.org Cc: Mathieu Desnoyers , Rusty Russell , Christoph Hellwig , Paul Mackerras , Adrian Bunk , Andi Kleen , akpm@osdl.org Subject: [patch 05/12] Add text_poke and sync_core to powerpc Content-Disposition: inline; filename=add-text-poke-and-sync-core-to-powerpc.patch X-Poly-FromMTA: (test.casi.polymtl.ca [132.207.72.60]) at Thu, 24 Sep 2009 14:07:32 +0000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Needed on architectures where we must surround live instruction modification with "WP flag disable". - Turns into a memcpy on powerpc since there is no WP flag activated for instruction pages (yet..). - Add empty sync_core to powerpc so it can be used in architecture independent code. Signed-off-by: Mathieu Desnoyers CC: Rusty Russell CC: Christoph Hellwig CC: Paul Mackerras CC: Adrian Bunk CC: Andi Kleen CC: mingo@elte.hu CC: akpm@osdl.org --- arch/powerpc/include/asm/cacheflush.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-2.6-lttng/arch/powerpc/include/asm/cacheflush.h =================================================================== --- linux-2.6-lttng.orig/arch/powerpc/include/asm/cacheflush.h 2009-01-09 18:16:16.000000000 -0500 +++ linux-2.6-lttng/arch/powerpc/include/asm/cacheflush.h 2009-01-09 18:17:34.000000000 -0500 @@ -63,7 +63,9 @@ extern void flush_dcache_phys_range(unsi #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ memcpy(dst, src, len) - +#define text_poke memcpy +#define text_poke_early text_poke +#define sync_core() #ifdef CONFIG_DEBUG_PAGEALLOC /* internal debugging function */ -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68