From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 6.mo4.mail-out.ovh.net ([188.165.36.253] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U21EX-0000Xe-63 for barebox@lists.infradead.org; Sun, 03 Feb 2013 15:11:54 +0000 Received: from mail403.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 526D0104E9B3 for ; Sun, 3 Feb 2013 16:21:58 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 3 Feb 2013 16:10:02 +0100 Message-Id: <1359904236-11622-2-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1359904236-11622-1-git-send-email-plagnioj@jcrosoft.com> References: <20130203150333.GE18068@game.jcrosoft.org> <1359904236-11622-1-git-send-email-plagnioj@jcrosoft.com> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 02/36] ARM: add __noreturn to board_init_lowlevel_return To: barebox@lists.infradead.org From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/cpu/start-pbl.c | 6 +++--- arch/arm/cpu/start.c | 2 +- arch/arm/include/asm/barebox-arm.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/cpu/start-pbl.c b/arch/arm/cpu/start-pbl.c index f1ce2c5..da62111 100644 --- a/arch/arm/cpu/start-pbl.c +++ b/arch/arm/cpu/start-pbl.c @@ -118,9 +118,9 @@ static void mmu_disable(void) __mmu_cache_off(); } -static void barebox_uncompress(void *compressed_start, unsigned int len) +static void __noreturn barebox_uncompress(void *compressed_start, unsigned int len) { - void (*barebox)(void); + void __noreturn (*barebox)(void); /* * remap_cached currently does not work rendering the feature * of enabling the MMU in the PBL useless. disable for now. @@ -155,7 +155,7 @@ static void barebox_uncompress(void *compressed_start, unsigned int len) * Board code can jump here by either returning from board_init_lowlevel * or by calling this function directly. */ -void __naked board_init_lowlevel_return(void) +void __naked __noreturn board_init_lowlevel_return(void) { uint32_t offset; uint32_t pg_start, pg_end, pg_len; diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index 0b7eee8..f212b61 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -55,7 +55,7 @@ void __naked __bare_init reset(void) * Board code can jump here by either returning from board_init_lowlevel * or by calling this function directly. */ -void __naked board_init_lowlevel_return(void) +void __naked __noreturn board_init_lowlevel_return(void) { arm_setup_stack(STACK_BASE + STACK_SIZE - 16); diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h index 4ccf938..0574f34 100644 --- a/arch/arm/include/asm/barebox-arm.h +++ b/arch/arm/include/asm/barebox-arm.h @@ -35,7 +35,7 @@ int dram_init (void); extern char __exceptions_start[], __exceptions_stop[]; void board_init_lowlevel(void); -void board_init_lowlevel_return(void); +void __noreturn board_init_lowlevel_return(void); uint32_t get_runtime_offset(void); void setup_c(void); -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox