what does this mean?
My code is hitting in sched.c - if (unlikely(in_interrupt())) { printk(Scheduling in interrupt\n); BUG(); } It is hitting this printk. So is this telling me I'm calling schedule from within an interrupt? How can this be? Has anyone else seen something like this and can anyone give me a hint as to what to look for. Thanks. -stv
what does this mean?
On Tue, 2006-05-16 at 09:51 -0700, Steve Iribarne (GMail) wrote: My code is hitting in sched.c - if (unlikely(in_interrupt())) { printk(Scheduling in interrupt\n); BUG(); } It is hitting this printk. So is this telling me I'm calling schedule from within an interrupt? How can this be? Has anyone else seen something like this and can anyone give me a hint as to what to look for. Check to make sure that in your interrupt handler you are not calling something that can sleep. E.g. sleep(), usleep(), kmalloc(), vmalloc(), etc. Thanks. -stv Best regards, Walt Wimer TimeSys Corporation
what does this mean?
On Tue, 2006-05-16 at 13:38 -0400, Walter L. Wimer III wrote: Check to make sure that in your interrupt handler you are not calling something that can sleep. E.g. sleep(), usleep(), kmalloc(), vmalloc(), etc. Also watch out for semaphore operations such as down() and down_interruptible(). They can sleep too. Walt
what does this mean?
Thanks. That's what I think it is, but I didn't write this code so I'm trying to track down who is calling down at interrupt time. On 5/16/06, Walter L. Wimer III walt.wimer at timesys.com wrote: On Tue, 2006-05-16 at 13:38 -0400, Walter L. Wimer III wrote: Check to make sure that in your interrupt handler you are not calling something that can sleep. E.g. sleep(), usleep(), kmalloc(), vmalloc(), etc. Also watch out for semaphore operations such as down() and down_interruptible(). They can sleep too. Walt
What does KERNELBASE mean?
Hi: In linux/arch/ppc/kernel/head.S, what does KERNELBASE mean? What does the following mean? .long TOPHYS(__start),0,0 Thanks. LiuTao ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
What does KERNELBASE mean?
This .long stuff dates back to the POWER architecture (IBM) beginnings of PowerPC wherein IBM and later Apple defined a three (or even longer) word table of contents entry for each global entry point. The first word was the pointer to the function, the second word was the pointer to be used for the subroutine's duration for its TOC register value and the third word was some kinda magical language defined extra thingie nobody ever used as far as I know. Effectively, its a larger style function pointer. The boot ROMs on some PowerPC machines (Apple's Open Firmware for example) expect the entry point of a loaded image to have one of these at the entry point location. They simply load the value there and jump to it to start the loaded image. On Tue, 04 Jan 2000, LiuTao wrote: Hi: In linux/arch/ppc/kernel/head.S, what does KERNELBASE mean? What does the following mean? .longTOPHYS(__start),0,0 Thanks. LiuTao -- Alan Mimms Packet Engines, Inc. Spokane, Washington [99214-0497] USA, Earth, Sol, Milky Way, The Local Group, Virgo Supercluster, U0 Despite the cost of living, have you noticed how popular it remains? -- Steven Wright? ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
What does KERNELBASE mean?
KERNELBASE is the virtual address the physical RAM is mapped to. On most kernels on PowerPC this is 0xC000. If you subtract KERNELBASE from a virtual address, you get its physical address in RAM, since PowerPC platforms more or less universally define that RAM starts at 0x. Hence the name TOPHYS. a On Tue, 04 Jan 2000, LiuTao wrote: Hi: In linux/arch/ppc/kernel/head.S, what does KERNELBASE mean? What does the following mean? .longTOPHYS(__start),0,0 Thanks. LiuTao -- Alan Mimms Packet Engines, Inc. Spokane, Washington [99214-0497] USA, Earth, Sol, Milky Way, The Local Group, Virgo Supercluster, U0 Despite the cost of living, have you noticed how popular it remains? -- Steven Wright? ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/