Re: Why can't we sleep in an ISR?

From: Dong Feng
Date: Tue May 15 2007 - 02:46:12 EST



good enough, but i have a query regarding this then.
On a 8K kernel stack system, doesn't interrupts share the stack associated
with the current process which was interrupted?

Yes, I think so.

Doesn't interrupt steals the CPU slice time allocated to the running process
to run?

I don't think so but I am not sure.

Doesn't it run in current process's context ?


No. I think the concept of process context is a higher-level logical
concept. Though the interrupt share stack with the interrupted
process, in my opinion it logically does not share the context with
the process.

What am i missing here?

Thanks
~psr



But I do not see the exact relationship between your specific queries
and the original question. Could you elaborate?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/