From 76a6b4fa89a7343f7c426341a4b2f419051b2154 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 21 Nov 2021 14:24:35 +0000 Subject: [PATCH] - fixed CFI_ERR_BASE interfering with SR_BIT_PSLBS git-svn-id: http://moon:8086/svn/mips@173 a8ebac50-d88d-4704-bea3-6648445a41b3 --- src/cfiflash.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cfiflash.h b/src/cfiflash.h index 5150d5b..ba4a020 100644 --- a/src/cfiflash.h +++ b/src/cfiflash.h @@ -13,7 +13,9 @@ #define SR_BIT_ISMS 0x00800080 #define CFI_IS_ERROR(e) ((e & CFI_ERR_BASE) == CFI_ERR_BASE) -#define CFI_ERR_BASE (0x80000000 + 0x00100000) +#ifndef CFI_ERR_BASE +#define CFI_ERR_BASE (0x80000000) +#endif #define CFI_ERR_GENERAL (CFI_ERR_BASE + 0) #define CFI_ERR_NOTFOUND (CFI_ERR_BASE + 1) #define CFI_ERR_INVPARAM (CFI_ERR_BASE + 2)