[Blackfin] arch: Let the pre-processor do the math to save a few cycles - no function...
authorRobin Getz <robin.getz@analog.com>
Fri, 21 Dec 2007 09:49:53 +0000 (17:49 +0800)
committerBryan Wu <bryan.wu@analog.com>
Fri, 21 Dec 2007 09:49:53 +0000 (17:49 +0800)
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/mach-common/entry.S

index 1b25b57c8c05007fcd4e73fb30c4cbb37f30a539..58f7ad617992fcf1b3c195ffa9f6c9392e637727 100644 (file)
@@ -633,9 +633,7 @@ ENTRY(_ret_from_exception)
        [sp + PT_IPEND] = r0;
 
 1:
-       r1 = 0x37(Z);
-       r2 = ~r1;
-       r2.h = 0;
+       r2 = LO(~0x37) (Z);
        r0 = r2 & r0;
        cc = r0 == 0;
        if !cc jump 4f; /* if not return to user mode, get out */