Re: [patch] new wait instruction for vr4181

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steven Seeger wrote:
> I think I figured this out. Could someone look at this and tell me if I did
> it right?
> 
> Thanks.
> 
> -Steve
> 

> --- /root/vr/new/linux-2.4.21.orig/arch/mips/kernel/cpu-probe.c	2003-04-24 05:32:21.000000000 -0700
> +++ ./cpu-probe.c	2003-04-24 14:16:35.000000000 -0700
> @@ -34,6 +34,16 @@
>  		".set\tmips0");
>  }
>  
> +#ifdef CONFIG_VR4181
> +static void vr4181_wait(void)

The GAS source claims all vr41xx have 'standby', so you may probably
rename the function and enable it for all CONFIG_VR41*.

> +{
> +   __asm__(".set\tnoreorder\n"

A \t at the end like
__asm__(".set\tnoreorder\n\t"
gives better formatting, and the last line doesn't need a \n.

> +	   ".int 0x42000021\n"

.word is probably more usual.


Thiemo


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux