X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fcpc45%2Fflash.c;h=a289d0894202831d3a51eda46fffbd333220fd0d;hb=3b57fe0a70b903f4db66c558bb9828bc58acf06b;hp=6e81b9c335b7c60f5c6a2ef940e0b41a5e8b3090;hpb=f07771cc288eb86cad8f8a5c1aa593caf2ba26f8;p=u-boot diff --git a/board/cpc45/flash.c b/board/cpc45/flash.c index 6e81b9c335..a289d08942 100644 --- a/board/cpc45/flash.c +++ b/board/cpc45/flash.c @@ -132,12 +132,12 @@ unsigned long flash_init(void) #if CFG_MONITOR_BASE >= CFG_FLASH_BASE + FLASH_BANK_SIZE flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE, - CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1, + CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[1]); #else flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE, - CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1, + CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]); #endif #endif