[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <499DA7AB.8080000@zytor.com>
Date: Thu, 19 Feb 2009 10:40:43 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Petr Tesarik <ptesarik@...e.cz>
CC: Ingo Molnar <mingo@...e.hu>, Jeremy Fitzhardinge <jeremy@...p.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86: remove unneeded endless loop in BUG()
Petr Tesarik wrote:
> Since __builtin_trap() will always generate an illegal instruction, we
> can replace the explicit asm("ud2") with it.
>
> This way gcc will understand that the function never returns, plus it
> won't emit any extra instructions.
>
> Signed-off-by: Petr Tesarik <ptesarik@...e.cz>
I like this. Will apply shortly.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists