lkml.org 
[lkml]   [2008]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] i386: Execute stack overflow warning on interrupt stack
    On 05/02/2008 11:18 AM, Andi Kleen wrote:
    > i386: Execute stack overflow warning on interrupt stack
    [...]
    > --- linux.orig/arch/x86/kernel/irq_32.c
    > +++ linux/arch/x86/kernel/irq_32.c
    > @@ -61,6 +61,26 @@ static union irq_ctx *hardirq_ctx[NR_CPU
    > static union irq_ctx *softirq_ctx[NR_CPUS] __read_mostly;
    > #endif
    >
    > +static void stack_overflow(void)
    > +{
    > + printk("low stack detected by irq handler\n");
    > + dump_stack();
    > +}
    > +
    > +static inline void call_on_stack2(void *func, unsigned long stack,
    > + unsigned long arg1, unsigned long arg2)
    > +{
    > + unsigned long bx;
    > + asm volatile(
    > + " xchgl %%ebx,%%esp \n"
    > + " call *%%edi \n"
    > + " movl %%ebx,%%esp \n"
    > + : "=a" (arg1), "=d" (arg2), "=b" (bx)
    > + : "0" (arg1), "1" (arg2), "2" (stack),
    > + "D" (func)
    > + : "memory", "cc", "ecx');

    Am I seeing wrong, or is it a ' after the ecx?


    \
     
     \ /
      Last update: 2008-05-02 11:47    [W:0.030 / U:0.360 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site