Re: [Question] arch-independent way to differentiate between user and kernel

2005-08-03 Thread Steven Rostedt
On Wed, 2005-08-03 at 12:48 +0200, Ingo Molnar wrote: > > i dont think there's any. user_mode(regs) gets the closest - it might > make sense to generalize it over all arches. > > update_process_times() gets an arch-independent 'was the tick user-space > or kernel-space' flag, so the best starti

Re: [Question] arch-independent way to differentiate between user and kernel

2005-08-03 Thread Ingo Molnar
* Steven Rostedt <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm dealing with a problem where I want to know from __do_IRQ in > kernel/irq/handle.c if the interrupt occurred while the process was in > user space or kernel space. But the trick here is that it must work > on all architectures. >

[Question] arch-independent way to differentiate between user and kernel

2005-08-03 Thread Steven Rostedt
Hi all, I'm dealing with a problem where I want to know from __do_IRQ in kernel/irq/handle.c if the interrupt occurred while the process was in user space or kernel space. But the trick here is that it must work on all architectures. Does anyone know of some way that that function can tell if it