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

2005-08-03 Thread Steven Rostedt
On Wed, 2005-08-03 at 14:04 +0200, Ingo Molnar wrote: > * Steven Rostedt <[EMAIL PROTECTED]> wrote: > > > On Wed, 2005-08-03 at 06:56 -0400, linux-os (Dick Johnson) wrote: > > > On Wed, 3 Aug 2005, Steven Rostedt wrote: > > > The interrupt handler gets a pointer to a structure called "struct > >

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

2005-08-03 Thread Ingo Molnar
* Steven Rostedt <[EMAIL PROTECTED]> wrote: > On Wed, 2005-08-03 at 06:56 -0400, linux-os (Dick Johnson) wrote: > > On Wed, 3 Aug 2005, Steven Rostedt wrote: > > The interrupt handler gets a pointer to a structure called "struct pt_regs". > > That contains, amongst other things, the registers pus

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

2005-08-03 Thread Steven Rostedt
On Wed, 2005-08-03 at 06:56 -0400, linux-os (Dick Johnson) wrote: > On Wed, 3 Aug 2005, Steven Rostedt wrote: > The interrupt handler gets a pointer to a structure called "struct pt_regs". > That contains, amongst other things, the registers pushed onto the stack > during the interrupt. If the segm

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

2005-08-03 Thread linux-os \(Dick Johnson\)
On Wed, 3 Aug 2005, Steven Rostedt 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. > > Does