From patchwork Wed Jul 12 09:43:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 787097 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3x6vHX5pvLz9s65 for ; Wed, 12 Jul 2017 19:47:04 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DB0A9C21F78; Wed, 12 Jul 2017 09:45:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A771BC21F3D; Wed, 12 Jul 2017 09:43:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3CDC1C21D09; Wed, 12 Jul 2017 09:43:21 +0000 (UTC) Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by lists.denx.de (Postfix) with ESMTPS id 1CE9EC21EE8 for ; Wed, 12 Jul 2017 09:43:21 +0000 (UTC) Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 3x6vC225Gnz9ttBg; Wed, 12 Jul 2017 11:43:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id u0dybMDRwsy4; Wed, 12 Jul 2017 11:43:10 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 3x6vC21QhRz9ttBV; Wed, 12 Jul 2017 11:43:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AB3D68B830; Wed, 12 Jul 2017 11:43:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id PBKW7MKS4Qxm; Wed, 12 Jul 2017 11:43:20 +0200 (CEST) Received: from pc13941vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.8]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8CE268B7FE; Wed, 12 Jul 2017 11:43:20 +0200 (CEST) Received: by pc13941vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 7E89A6A666; Wed, 12 Jul 2017 11:43:20 +0200 (CEST) Message-Id: <6783d2c1b0bdbdb18cddd0973fefec604c173843.1499629706.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy To: Wolfgang Denk , Heiko Schocher , Tom Rini , Mario Six , York Sun Date: Wed, 12 Jul 2017 11:43:20 +0200 (CEST) Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 02/14] powerpc: get rid of addr_probe() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This function has never been used, at least since the beginning of the git repository Signed-off-by: Christophe Leroy Reviewed-by: Wolfgang Denk --- arch/powerpc/cpu/mpc83xx/traps.c | 27 --------------------------- arch/powerpc/cpu/mpc85xx/traps.c | 8 -------- arch/powerpc/cpu/mpc86xx/traps.c | 10 ---------- arch/powerpc/cpu/mpc8xx/traps.c | 8 -------- 4 files changed, 53 deletions(-) diff --git a/arch/powerpc/cpu/mpc83xx/traps.c b/arch/powerpc/cpu/mpc83xx/traps.c index 3dd6900c86..f238d0b91c 100644 --- a/arch/powerpc/cpu/mpc83xx/traps.c +++ b/arch/powerpc/cpu/mpc83xx/traps.c @@ -215,30 +215,3 @@ void DebugException(struct pt_regs *regs) do_bedbug_breakpoint( regs ); #endif } - -/* Probe an address by reading. If not present, return -1, otherwise - * return 0. - */ -int addr_probe(uint *addr) -{ -#if 0 - int retval; - - __asm__ __volatile__( \ - "1: lwz %0,0(%1)\n" \ - " eieio\n" \ - " li %0,0\n" \ - "2:\n" \ - ".section .fixup,\"ax\"\n" \ - "3: li %0,-1\n" \ - " b 2b\n" \ - ".section __ex_table,\"a\"\n" \ - " .align 2\n" \ - " .long 1b,3b\n" \ - ".text" \ - : "=r" (retval) : "r"(addr)); - - return (retval); -#endif - return 0; -} diff --git a/arch/powerpc/cpu/mpc85xx/traps.c b/arch/powerpc/cpu/mpc85xx/traps.c index 24adbc3078..9d3556e50c 100644 --- a/arch/powerpc/cpu/mpc85xx/traps.c +++ b/arch/powerpc/cpu/mpc85xx/traps.c @@ -286,11 +286,3 @@ void DebugException(struct pt_regs *regs) do_bedbug_breakpoint( regs ); #endif } - -/* Probe an address by reading. If not present, return -1, otherwise - * return 0. - */ -int addr_probe(uint *addr) -{ - return 0; -} diff --git a/arch/powerpc/cpu/mpc86xx/traps.c b/arch/powerpc/cpu/mpc86xx/traps.c index 92fb537453..da74146844 100644 --- a/arch/powerpc/cpu/mpc86xx/traps.c +++ b/arch/powerpc/cpu/mpc86xx/traps.c @@ -195,13 +195,3 @@ void UnknownException(struct pt_regs *regs) regs->nip, regs->msr, regs->trap); _exception(0, regs); } - -/* - * Probe an address by reading. - * If not present, return -1, - * otherwise return 0. - */ -int addr_probe(uint *addr) -{ - return 0; -} diff --git a/arch/powerpc/cpu/mpc8xx/traps.c b/arch/powerpc/cpu/mpc8xx/traps.c index 8b8d617eed..ebf4e412c9 100644 --- a/arch/powerpc/cpu/mpc8xx/traps.c +++ b/arch/powerpc/cpu/mpc8xx/traps.c @@ -155,11 +155,3 @@ void DebugException(struct pt_regs *regs) printf("Debugger trap at @ %lx\n", regs->nip); show_regs(regs); } - -/* Probe an address by reading. If not present, return -1, otherwise - * return 0. - */ -int addr_probe(uint *addr) -{ - return 0; -}