From e3dc3633036a00deed4997be2101f48f1a8f9c7c Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 14 Apr 2004 20:16:52 +0000 Subject: When trying to program tho 88410, be sure to unmask both flash banks (as advertized in the comments...) --- sys/arch/mvme88k/include/m88410.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/mvme88k') 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; -- cgit v1.2.3