comparison packages/redboot/current/src/main.c @ 1663:59fbd6362c2b

get rid of unused workspace_size
author jani
date Mon, 31 May 2004 07:55:28 +0000
parents e1ee6283cd48
children
comparison
equal deleted inserted replaced
1662:feba8011053f 1663:59fbd6362c2b
284 } 284 }
285 #endif 285 #endif
286 #ifdef CYGMEM_SECTION_heap1 286 #ifdef CYGMEM_SECTION_heap1
287 workspace_start = (unsigned char *)CYGMEM_SECTION_heap1; 287 workspace_start = (unsigned char *)CYGMEM_SECTION_heap1;
288 workspace_end = (unsigned char *)(CYGMEM_SECTION_heap1+CYGMEM_SECTION_heap1_SIZE); 288 workspace_end = (unsigned char *)(CYGMEM_SECTION_heap1+CYGMEM_SECTION_heap1_SIZE);
289 workspace_size = CYGMEM_SECTION_heap1_SIZE;
290 #else 289 #else
291 workspace_start = (unsigned char *)CYGMEM_REGION_ram; 290 workspace_start = (unsigned char *)CYGMEM_REGION_ram;
292 workspace_end = (unsigned char *)(CYGMEM_REGION_ram+CYGMEM_REGION_ram_SIZE); 291 workspace_end = (unsigned char *)(CYGMEM_REGION_ram+CYGMEM_REGION_ram_SIZE);
293 workspace_size = CYGMEM_REGION_ram_SIZE;
294 #endif 292 #endif
295 293
296 if ( ram_end < workspace_end ) { 294 if ( ram_end < workspace_end ) {
297 // when *less* SDRAM is installed than the possible maximum, 295 // when *less* SDRAM is installed than the possible maximum,
298 // but the heap1 region remains greater... 296 // but the heap1 region remains greater...
299 workspace_end = ram_end; 297 workspace_end = ram_end;
300 workspace_size = workspace_end - workspace_start;
301 } 298 }
302 299
303 // Nothing has ever been loaded into memory 300 // Nothing has ever been loaded into memory
304 entry_address = (unsigned long)NO_MEMORY; 301 entry_address = (unsigned long)NO_MEMORY;
305 302