Skip to content

Commit

Permalink
[SPARC]: Fix mxcc warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom 'spot' Callaway authored and David S. Miller committed Apr 25, 2005
1 parent 962bd56 commit 205a7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-sparc/mxcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) :
Expand Down

0 comments on commit 205a7ed

Please sign in to comment.