On Sun, 5 Jul 1998, Andrea Arcangeli wrote:

>I am recompiling the kernel with -mregparm=1. It crashes in
>check_partition() (in genhd.c). Once I' ll have fixed the bug (maybe in
>the compiler ;-) I' ll make some performance test... 

Argg, there are the asm functions that make mess:

extern __inline__ int __test_bit(int nr, volatile void * addr)
{
        int oldbit;

        __asm__ __volatile__(
                "btl %2,%1\n\tsbbl %0,%0"
                :"=r" (oldbit)
                :"m" (ADDR),"ir" (nr));
                 ^^^
        return oldbit;
}

addr is no longer a memory location... I should replace "m" with "r" or
"a"...

Andrea[s] Arcangeli

Reply via email to