linux-mips
[Top] [All Lists]

__MIPSEL__ in sys32_rt_sigtimedwait

To: linux-mips@linux-mips.org
Subject: __MIPSEL__ in sys32_rt_sigtimedwait
From: Pavel Kiryukhin <savl@dev.rtsoft.ru>
Date: Tue, 20 Jan 2004 20:42:15 +0300
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
Hi all,
my question - does endiannes matters in sigset translation in sys32_rt_sigtimedwait (arch/mips/signal32.c)?

===================
@@ -827,18 +827,10 @@
        return -EFAULT;

    switch (_NSIG_WORDS) {
-#ifdef __MIPSEB__
    case 4: these.sig[3] = these32.sig[6] | (((long)these32.sig[7]) << 32);
    case 3: these.sig[2] = these32.sig[4] | (((long)these32.sig[5]) << 32);
    case 2: these.sig[1] = these32.sig[2] | (((long)these32.sig[3]) << 32);
    case 1: these.sig[0] = these32.sig[0] | (((long)these32.sig[1]) << 32);
-#endif
-#ifdef __MIPSEL__
-    case 4: these.sig[3] = these32.sig[7] | (((long)these32.sig[6]) << 32);
-    case 3: these.sig[2] = these32.sig[5] | (((long)these32.sig[4]) << 32);
-    case 2: these.sig[1] = these32.sig[3] | (((long)these32.sig[2]) << 32);
-    case 1: these.sig[0] = these32.sig[1] | (((long)these32.sig[0]) << 32);
-#endif
    }

    /*
===================
Regards,
Pavel Kiryukhin



<Prev in Thread] Current Thread [Next in Thread>