Re: [PATCH 4/5] Generic BUG for powerpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Ellerman wrote:
I posted a patch a few weeks back to use __builtin_trap(), which gives
GCC the hint that it's not going to return.

Ah, interesting. I'd been looking for it, and, yep, completely undocumented. It even generates the right instruction on x86. Unfortunately, your asm sequence isn't correct, since there's no guarantee that the asm and the builtin_trap will be adjacent (though its hard to see what might be interposed in this case, since it would be dead code). If only gcc labels-as-values worked properly...

(http://patchwork.ozlabs.org/linuxppc/patch?id=7047)

Unfortunately this generated some negative feedback from some of our
crackhead ... er wonderful colleagues who want to be able to step over
BUGs in some circumstances.
(http://ozlabs.org/pipermail/linuxppc-dev/2006-September/026161.html)

I think they conceeded that it could be configurable, but I wasn't sure
it was worth the trouble.

Hm, not really.  Well, it can be an arch-by-arch decision.

   J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux