lkml.org 
[lkml]   [2002]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] [PATCH] C exceptions in kernel
    Dan,

    Don't let'em get to ya, they are having a time warp problem.

    Finally a method of preventing oops'es.

    Cheers,
    Dave


    Dan Aloni wrote:
    >
    > The attached patch implements C exceptions in the kernel, which *don't*
    > depend on special support from the compiler. This is a 'request for
    > comments'. The patch is very initial, should not be applied.
    >
    > I actually got this code to work in the kernel:
    >
    > try {
    > printk("TEST: before throwing \n");
    > throw(1000);
    > printk("TEST: won't run\n");
    > }
    > catch(unsigned long, value) {
    > printk("TEST: caught: %ld\n", value);
    > } yrt;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:20    [W:0.023 / U:0.500 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site