~ubuntu-branches/ubuntu/lucid/skyeye/lucid-proposed

« back to all changes in this revision

Viewing changes to arch/arm/dbct/tb.c

  • Committer: Bazaar Package Importer
  • Author(s): Yu Guanghui
  • Date: 2007-08-07 13:25:49 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070807132549-96159k1obat1fxr0
Tags: 1.2.3-1
* New upstream release
* Added NO_BFD=1, don't require libbfd now. (Closes:Bug#423933) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2220
2220
        }
2221
2221
        if (TB_TBP_SIZE) {
2222
2222
                //get mem by TB_TBP_SIZE
2223
 
//koodailar add it for mingw 2005.12.18-----------------------------------------                     
2224
 
#ifdef __MINGW32__
2225
 
                tbp_begin =
2226
 
                        malloc(TB_TBP_SIZE);
2227
 
                if (tbp_begin == NULL) {
2228
 
                        fprintf (stderr,
2229
 
                                 "SKYEYE: tb_memory_init: Error allocating mem.\n");
2230
 
                        return (-1);
2231
 
                }                                       
2232
 
#else                   
2233
 
                //get mem by TB_TBP_SIZE
2234
2223
                tbp_begin =
2235
2224
                        mmap (NULL, TB_TBP_SIZE,
2236
2225
                              PROT_READ | PROT_WRITE | PROT_EXEC,
2240
2229
                                 "SKYEYE: tb_memory_init: Error allocating mem.\n");
2241
2230
                        return (-1);
2242
2231
                }
2243
 
#endif
2244
 
//end koodailar ----------------------------------------------------------------        
2245
2232
                tbp_now_size = TB_TBP_SIZE;
2246
2233
                tbp_now = tbp_begin;
2247
2234
        }