summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-04-14 20:16:52 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-04-14 20:16:52 +0000
commite3dc3633036a00deed4997be2101f48f1a8f9c7c (patch)
tree06dbf8e1d3468c04f32462016f24f2751156693e /sys/arch/mvme88k
parent9ffc822d93a68568cc924939d4bb68fddd98a755 (diff)
When trying to program tho 88410, be sure to unmask both flash banks
(as advertized in the comments...)
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/include/m88410.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/include/m88410.h b/sys/arch/mvme88k/include/m88410.h
index 39cc25e5b29..ca22e47727b 100644
--- a/sys/arch/mvme88k/include/m88410.h
+++ b/sys/arch/mvme88k/include/m88410.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: m88410.h,v 1.8 2004/04/12 13:14:56 miod Exp $ */
+/* $OpenBSD: m88410.h,v 1.9 2004/04/14 20:16:51 miod Exp $ */
/*
* Copyright (c) 2001 Steve Murphree, Jr.
* All rights reserved.
@@ -65,7 +65,7 @@ mc88410_flush_page(paddr_t physaddr)
/* mask misaligned exceptions */
set_psr(psr | PSR_MXM);
/* clear WEN0 and WEN1 in ROMCR (disables writes to FLASH) */
- bs->bs_romcr &= ~(BS_ROMCR_WEN0 | BS_ROMCR_WEN0) ;
+ bs->bs_romcr &= ~(BS_ROMCR_WEN0 | BS_ROMCR_WEN1) ;
/* set XCC bit in GCSR (0xFF8xxxxx now decodes to mc88410) */
bs->bs_gcsr |= BS_GCSR_XCC;
@@ -102,7 +102,7 @@ mc88410_flush(void)
/* mask misaligned exceptions */
set_psr(psr | PSR_MXM);
/* clear WEN0 and WEN1 in ROMCR (disables writes to FLASH) */
- bs->bs_romcr &= ~(BS_ROMCR_WEN0 | BS_ROMCR_WEN0) ;
+ bs->bs_romcr &= ~(BS_ROMCR_WEN0 | BS_ROMCR_WEN1) ;
/* set XCC bit in GCSR (0xFF8xxxxx now decodes to mc88410) */
bs->bs_gcsr |= BS_GCSR_XCC;
@@ -139,7 +139,7 @@ mc88410_inval(void)
/* mask misaligned exceptions */
set_psr(psr | PSR_MXM);
/* clear WEN0 and WEN1 in ROMCR (disables writes to FLASH) */
- bs->bs_romcr &= ~(BS_ROMCR_WEN0 | BS_ROMCR_WEN0) ;
+ bs->bs_romcr &= ~(BS_ROMCR_WEN0 | BS_ROMCR_WEN1) ;
/* set XCC bit in GCSR (0xFF8xxxxx now decodes to mc88410) */
bs->bs_gcsr |= BS_GCSR_XCC;