X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fbasic-test%2Fyramsim.c;h=69b5b78368a06e5165b9d8882b3fc2cc7ce54026;hp=a791791bb49bfdd221069c31ba6bc179eb6e23b5;hb=f792554ed6d0b514dfb040097033417d8e41f420;hpb=abe16e8d584a1e0e8a0ef9efa41d20af71564f41 diff --git a/direct/basic-test/yramsim.c b/direct/basic-test/yramsim.c index a791791..69b5b78 100644 --- a/direct/basic-test/yramsim.c +++ b/direct/basic-test/yramsim.c @@ -7,13 +7,6 @@ #include "yaffs_nandif.h" -#ifdef __WINCE__ -#include -#else -#define DebugBreak() do { } while(0) -#endif - - #define DATA_SIZE 2048 #define SPARE_SIZE 64 #define PAGE_SIZE (DATA_SIZE + SPARE_SIZE) @@ -47,17 +40,14 @@ static void CheckInitialised(void) static int yramsim_EraseBlockInternal(SymData *sym, unsigned blockId,int force) { if(blockId < 0 || blockId >= sym->nBlocks){ - DebugBreak(); return 0; } if(!sym->blockList[blockId]){ - DebugBreak(); return 0; } if(!force && !sym->blockList[blockId]->blockOk){ - DebugBreak(); return 0; } @@ -101,7 +91,6 @@ static int yramsim_ReadChunk (yaffs_Device *dev, unsigned pageId, spareLength > SPARE_SIZE || !eccStatus || !blockList[blockId]->blockOk){ - DebugBreak(); return 0; } @@ -136,7 +125,6 @@ static int yramsim_WriteChunk (yaffs_Device *dev,unsigned pageId, dataLength >DATA_SIZE || spareLength > SPARE_SIZE || !blockList[blockId]->blockOk){ - DebugBreak(); return 0; } @@ -167,7 +155,6 @@ static int yramsim_CheckBlockOk(yaffs_Device *dev,unsigned blockId) SymData *sym = DevToSym(dev); Block **blockList = sym->blockList; if(blockId >= sym->nBlocks){ - DebugBreak(); return 0; } @@ -179,7 +166,6 @@ static int yramsim_MarkBlockBad(yaffs_Device *dev,unsigned blockId) SymData *sym = DevToSym(dev); Block **blockList = sym->blockList; if(blockId >= sym->nBlocks){ - DebugBreak(); return 0; }