Changeset 1220


Ignore:
Timestamp:
07/03/11 20:05:32 (23 months ago)
Author:
reyalp
Message:

d10 - add exmem, chdk in exmem support

Location:
trunk/platform/d10/sub/100a
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/d10/sub/100a/boot.c

    r947 r1220  
    181181"                STR     R0, [SP,#4]\n" 
    182182//"                LDR     R0, =0x146A2C\n" 
     183#ifdef OPT_CHDK_IN_EXMEM 
     184"                LDR     R0, =0x146A2C\n" 
     185#else 
    183186              "LDR     R0, =new_sa\n" 
    184187              "LDR     R0, [R0]\n" 
     188#endif 
    185189"                LDR     R2, =0x2F9C00\n" 
    186190"                LDR     R1, =0x2F24A8\n" 
  • trunk/platform/d10/sub/100a/makefile.inc

    r897 r1220  
    66MEMBASEADDR=0x1900 
    77RESTARTSTART=0x50000 
    8 MEMISOSTART=0x146A2C 
    98ROMBASEADDR=0xff810000 
    109 
     10# Set up size variables for EXMEM 
     11EXMEM_HEAP_SKIP=0xFD200 #(0x44000000-0x43F02E00) from sub_FF86CAA8 = size of video buffers in EXMEM area (?) 
     12EXMEM_BUFFER_SIZE=0x300000      # Amount of EXMEM memory to allocate for CHDK = 3MB 
     13 
     14MAXRAMADDR=0x03FFFFFF # 64 mb 
     15 
     16ifdef OPT_CHDK_IN_EXMEM 
     17MEMISOSTART=0x3C02DE0           # MAXRAMADDR+1 - EXMEM_HEAP_SKIP - EXMEM_BUFFER_SIZE - 32 (exmem allocates 64 bytes extra, 32 before and 32 after block allocated) 
     18else 
     19MEMISOSTART=0x146A2C 
     20endif 
    1121 
    1222PLFLAGS=-DMEMBASEADDR=$(MEMBASEADDR) -DMEMISOSTART=$(MEMISOSTART) -DMEMISOSIZE=$(MEMISOSIZE) 
Note: See TracChangeset for help on using the changeset viewer.