From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.gmx.net ([212.227.17.22]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpEQr-0005Ee-5R for barebox@lists.infradead.org; Wed, 19 Jun 2013 09:12:02 +0000 Received: from mailout-de.gmx.net ([10.1.76.30]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MNwJx-1Uw6Bb09GN-007RmR for ; Wed, 19 Jun 2013 11:11:40 +0200 From: Oleksij Rempel Date: Wed, 19 Jun 2013 11:11:27 +0200 Message-Id: <1371633093-23179-3-git-send-email-linux@rempel-privat.de> In-Reply-To: <1371633093-23179-1-git-send-email-linux@rempel-privat.de> References: <1371633093-23179-1-git-send-email-linux@rempel-privat.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/8] MIPS: pbl: add pbl_sleep macro To: barebox@lists.infradead.org Signed-off-by: Oleksij Rempel --- arch/mips/include/asm/pbl_macros.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/include/asm/pbl_macros.h b/arch/mips/include/asm/pbl_macros.h index a3f970c..cfca117 100644 --- a/arch/mips/include/asm/pbl_macros.h +++ b/arch/mips/include/asm/pbl_macros.h @@ -28,6 +28,16 @@ #include #include + .macro pbl_sleep reg count + .set push + .set noreorder + li \reg, \count +1: + bgtz \reg, 1b + addi \reg, -1 + .set pop + .endm + /* * ADR macro instruction (inspired by ARM) * -- 1.8.1.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox