Skip to content

Commit 205a7ed

Browse files
Tom 'spot' Callawaydavem330
authored andcommitted
[SPARC]: Fix mxcc warning
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>
1 parent 962bd56 commit 205a7ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/asm-sparc/mxcc.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ extern __inline__ unsigned long mxcc_get_creg(void)
115115
{
116116
unsigned long mxcc_control;
117117

118-
__asm__ __volatile__("set -1, %%g2\n\t"
119-
"set -1, %%g3\n\t"
118+
__asm__ __volatile__("set 0xffffffff, %%g2\n\t"
119+
"set 0xffffffff, %%g3\n\t"
120120
"stda %%g2, [%1] %2\n\t"
121121
"lda [%3] %2, %0\n\t" :
122122
"=r" (mxcc_control) :

0 commit comments

Comments
 (0)