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 1Upv68-0001Qo-3Q for barebox@lists.infradead.org; Fri, 21 Jun 2013 06:45:28 +0000 Received: from mailout-de.gmx.net ([10.1.76.17]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MTdXC-1Uh16k1tEe-00QTeM for ; Fri, 21 Jun 2013 08:45:02 +0200 From: Oleksij Rempel Date: Fri, 21 Jun 2013 08:44:56 +0200 Message-Id: <1371797096-11927-1-git-send-email-linux@rempel-privat.de> In-Reply-To: <1371633093-23179-3-git-send-email-linux@rempel-privat.de> References: <1371633093-23179-3-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 v2] 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..fde9434 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 +254: + bgtz \reg, 254b + 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