mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: DU HUANPENG <opentkernel@163.com>
Cc: barebox@lists.infradead.org, Du Huanpeng <u74147@gmail.com>
Subject: Re: [PATCH] arm: decalare div0 as weak function
Date: Mon, 9 Jan 2017 09:20:26 +0100	[thread overview]
Message-ID: <20170109082025.xijkeym5rqdgfv37@pengutronix.de> (raw)
In-Reply-To: <1483800326-14277-1-git-send-email-opentkernel@163.com>

Hi,

On Sat, Jan 07, 2017 at 10:45:26PM +0800, DU HUANPENG wrote:
> From: Du Huanpeng <u74147@gmail.com>
> 
> Signed-off-by: Du Huanpeng <u74147@gmail.com>
> ---
>  arch/arm/lib/div0.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/lib/div0.c b/arch/arm/lib/div0.c
> index 852cb72..d4f3b6c 100644
> --- a/arch/arm/lib/div0.c
> +++ b/arch/arm/lib/div0.c
> @@ -17,11 +17,11 @@
>   *
>   */
>  #include <common.h>
> +#include <linux/compiler.h>
>  
>  extern void __div0(void);
>  
> -/* Replacement (=dummy) for GNU/Linux division-by zero handler */
> -void __div0 (void)
> +__weak void __div0 (void)

Could you explain why and in which situations you need this?

Sascha

>  {
>  	panic("division by zero\n");
>  }
> -- 
> 2.7.4
> 
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2017-01-09  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-07 14:45 DU HUANPENG
2017-01-09  8:20 ` Sascha Hauer [this message]
2017-01-09 13:08   ` Du Huanpeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170109082025.xijkeym5rqdgfv37@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=opentkernel@163.com \
    --cc=u74147@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox