| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] Loongson: cs5536: Fixup of the isa support |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Wed, 19 May 2010 09:14:18 +0800 |
| Cc: | linux-mips@linux-mips.org, Zhang Le <r0bertz@gentoo.org>, loongson-dev@googlegroups.com, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=NKtwZwxPak96l1X6cJbPSnNJpKO+j0/6OUb13pxLxUc=; b=BGS6ah7exc/tn3i7sFsGqQfjJeMU5ZMS6L+ek6f7VFAd2WLSaxyOKAHPcq96qld38R j0FAhxwWgt8PR3FcdLibJxuIae+DYl2qoo0qpZzWZYweCXuWZkMh/HwqwenRwie5V/4w lC7VChBmqaNmon6xz60ecNPiujpCjVwR0y3j4= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=C0KwO3AhFs5dXZDcCkjTY0oGoP8WMwkSYKRosPT7KCOfAkbQyjPXs1JOgZIMU0X5lL 7QmDcstRi0+V7qxaTCn+tsnt4gSahULYmzzvytw20UQbHAn9ihB7f4rtdoLtKsSUTufM oUEAnCk4Wt08/MAAYdk0ZiQ709EJpOKqsTbkg= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
The function _wrmsr() called by divil_lbar_disable()/enable() should be
passed the argument with the offset.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/loongson/common/cs5536/cs5536_isa.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/loongson/common/cs5536/cs5536_isa.c
b/arch/mips/loongson/common/cs5536/cs5536_isa.c
index f5c0818..4d9f65a 100644
--- a/arch/mips/loongson/common/cs5536/cs5536_isa.c
+++ b/arch/mips/loongson/common/cs5536/cs5536_isa.c
@@ -61,7 +61,7 @@ static void divil_lbar_enable(void)
for (offset = DIVIL_LBAR_SMB; offset <= DIVIL_LBAR_PMS; offset++) {
_rdmsr(DIVIL_MSR_REG(offset), &hi, &lo);
hi |= 0x01;
- _wrmsr(DIVIL_MSR_REG(DIVIL_LBAR_SMB), hi, lo);
+ _wrmsr(DIVIL_MSR_REG(offset), hi, lo);
}
}
@@ -76,7 +76,7 @@ static void divil_lbar_disable(void)
for (offset = DIVIL_LBAR_SMB; offset <= DIVIL_LBAR_PMS; offset++) {
_rdmsr(DIVIL_MSR_REG(offset), &hi, &lo);
hi &= ~0x01;
- _wrmsr(DIVIL_MSR_REG(DIVIL_LBAR_SMB), hi, lo);
+ _wrmsr(DIVIL_MSR_REG(offset), hi, lo);
}
}
--
1.7.0.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] Loongson: cs5536: add a missing break; for ide, Wu Zhangjin |
|---|---|
| Next by Date: | Re: [PATCH] MIPS: Don't overflow cevt-r4k.c calculations at high clock rates., Wu Zhangjin |
| Previous by Thread: | [PATCH] Loongson: cs5536: add a missing break; for ide, Wu Zhangjin |
| Next by Thread: | Re: [PATCH] Loongson: cs5536: Fixup of the isa support, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |