]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SPARC]: Fix mxcc warning
authorTom 'spot' Callaway <tcallawa@redhat.com>
Mon, 25 Apr 2005 03:46:00 +0000 (20:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2005 03:46:00 +0000 (20:46 -0700)
Peter Jones uncovered this one while we were debugging the framebuffer
issues. There are some references to -1 in the mxcc asm code, which
should be 0xffffffff.

This patch gets rid of the -1s.

Signed-off-by: Tom 'spot' Callaway <tcallawa@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc/mxcc.h

index efe4e843122dd84b1c3f108ed44bd0b913ec2f4a..60ef9d6fe7bca424d3b8a5e2cb846fb324ef7802 100644 (file)
@@ -115,8 +115,8 @@ extern __inline__ unsigned long mxcc_get_creg(void)
 {
        unsigned long mxcc_control;
 
-       __asm__ __volatile__("set -1, %%g2\n\t"
-                            "set -1, %%g3\n\t"
+       __asm__ __volatile__("set 0xffffffff, %%g2\n\t"
+                            "set 0xffffffff, %%g3\n\t"
                             "stda %%g2, [%1] %2\n\t"
                             "lda [%3] %2, %0\n\t" :
                             "=r" (mxcc_control) :