Re: [U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it

2011-09-30 Thread Shinya Kuribayashi
On 09/28/2011 06:09 PM, RdrouterUboot Router wrote: > 2.Is it right?I can delete this code "mfc0 $10,$12" from uboot. You can delete that MFC0 instruction in this case and save one word. Presumably the original code used to update the Status register value in read-modify-write manner, and at some

Re: [U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it

2011-09-29 Thread Marek Vasut
On Wednesday, September 28, 2011 11:09:05 AM RdrouterUboot Router wrote: > Hi all, > > MIPS Uboot works OK.Part of the code is as below. > > And my questions: > 1.read status register($12) and save value to $10,but don't use the value > in $10 to do anything. > Because uboot overwrite $10. > > 2

Re: [U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it

2011-09-29 Thread Detlev Zundel
Hi Bruce, > MIPS Uboot works OK.Part of the code is as below. Congratulations. Although I'm not sure what I'm congratulating on ;) > And my questions: > 1.read status register($12) and save value to $10,but don't use the value in > $10 to do anything. > Because uboot overwrite $10. > > 2.Is it

[U-Boot] Is it necessary that uboot(mips) should read status register($12) before setting it

2011-09-28 Thread RdrouterUboot Router
Hi all, MIPS Uboot works OK.Part of the code is as below. And my questions: 1.read status register($12) and save value to $10,but don't use the value in $10 to do anything. Because uboot overwrite $10. 2.Is it right?I can delete this code "mfc0 $10,$12" from uboot. Thanks. Bruce # Initialize