<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: cipe on alpha
From: Olaf Titz <olaf,AT,bigred,DOT,inka,DOT,de>
Date: Tue, 21 Nov 2000 14:22:57 +0100
In-reply-to: <Pine.LNX.4.10.10011201441140.11058-100000@straylight.eu.org>

> KCFLAGS=   -O3 -funroll-loops -Wall -Wstrict-prototypes
> -fomit-frame-pointer -fn
> o-strength-reduce -fno-strict-aliasing -g -O2 -mno-fp-regs -ffixed-8
> -mcpu=ev4

Okay, this proves that to compile a module reliably on all platforms
we _must_ somehow get the compilation flags out of the kernel instead
of guessing. :-( I'll try to write some configure magic. By now, use
the flags displayed when doing "make modules" in the kernel.

> cipcb.o: unresolved symbol init_task_union

Yes, that is broken. Replace the function cipe_isowned() in device.c
with this version:

static int cipe_isowned(struct cipe *c)
{
    struct task_struct *p;
    pid_t pid=c->owner;
    tasklist_LOCK();
    p=current;
    do {
        if (p->pid==pid) {
            tasklist_UNLOCK();
            return 1;
        }
        p=p->next_task;
    } while (p!=current);
    tasklist_UNLOCK();
    return 0;
}

Olaf





<< | Thread Index | >> ]    [ << | Date Index | >> ]