On 4/14/06, Jesper Juhl <jesper.juhl@xxxxxxxxx> wrote: > On 4/14/06, Manjunath Naik <peter.desouzain@xxxxxxxxx> wrote: > > ok, If this code is kernel code(their is no main) and writer has done > > some mistake, In this case how the kernel is going to handle this. > > > [snip] > > > > { > > > > while(1); > > > > } > [snip] > > If this is kernel code you've got a serious problem. > The kernel is not going to magically "handle it", the kernel assumes > that people who write kernel code don't do crazy things like that. In this case, only interrupts handlers would run depending on whether interupts are enabled or not. Regards, Om. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/