Changeset 1148 for trunk


Ignore:
Timestamp:
04/17/11 17:47:20 (2 years ago)
Author:
reyalP
Message:

g12 and exmem improvements from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg65002#msg65002

  • G12 cleanup boot.c task hook (removes changes made while tracking down startup crash that are not needed).
  • G12 updated color matrix
  • display exmem start address when OPT_EXMEM_TESTING is enabled. This is the value to use for MEMISOSTART when using OPT_CHDK_IN_EXMEM (saves calculating it manually).
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r1124 r1148  
    23682368        // If defined the exmem memory is allocated; but not used for CHDK. 
    23692369        // It is filled with a guard value (see wrappers.c) which is checked here 
    2370         // Any corruption is reported, otherwise 'OK' is displayed on screen. 
     2370    // Any corruption is reported, otherwise 'OK' is displayed on screen (along with the exmem memory start address). 
    23712371        extern void *exmem_start, *exmem_end; 
    23722372        // check exmem allocated memory for corruption 
     
    23922392        else 
    23932393        { 
    2394                 strcpy(osd_buf,"OK"); 
     2394                sprintf(osd_buf, "OK 0x%x", exmem_start); 
    23952395        } 
    23962396        draw_txt_string(2, 13, osd_buf, conf.osd_color); 
  • trunk/platform/g12/platform_camera.h

    r1140 r1148  
    7979        //need fixing ***************************************************** 
    8080    #define cam_CalibrationIlluminant1  17              // Standard Light A 
     81/* 
    8182    #define CAM_COLORMATRIX1                               \ 
    82       14134, 1000000, -5576, 1000000, -1527, 1000000, \ 
    83      -1991,  1000000, 10719,  1000000, 1273,   1000000, \ 
    84       -1158,   1000000, 1929,   1000000, 3581,  1000000 
     83      14134, 100000, -5576, 100000, -1527, 100000, \ 
     84      -1991, 100000, 10719, 100000,  1273, 100000, \ 
     85      -1158, 100000,  1929, 100000,  3581, 100000 
     86*/ 
     87    // From dcraw 
     88    #define CAM_COLORMATRIX1                       \ 
     89      13244, 10000, -5501, 10000, -1248, 10000, \ 
     90      -1508, 10000,  9858, 10000,  1935, 10000, \ 
     91       -270, 10000,  1083, 10000,  4366, 10000 
    8592 
    8693    // cropping 
  • trunk/platform/g12/sub/100c/boot.c

    r1145 r1148  
    4949        if(tcb->entry == (void*)task_MovieRecord)               tcb->entry = (void*)movie_record_task; 
    5050        if(tcb->entry == (void*)task_ExpDrv)                    tcb->entry = (void*)exp_drv_task; 
    51 } 
    52  
    53 void taskHook2(context_t **context) 
    54 {  
    55         task_t *tcb=(task_t*)((char*)context-offsetof(task_t, context)); 
    56  
    57         // Replace firmware task addresses with ours 
    58         if(tcb->entry == (void*)task_InitFileModules)   tcb->entry = (void*)init_file_modules_task; 
    5951} 
    6052 
     
    182174        //http://chdk.setepontos.com/index.php/topic,4194.0.html 
    183175        *(int*)0x1938=(int)taskHook; 
    184         *(int*)0x193C=(int)taskHook2; // setting this to an empty function seems to fix startup crash in movie mode ??? 
     176        *(int*)0x193C=(int)taskHook; 
    185177     
    186178        // replacement of sub_FF864BE0 for correct power-on. 
  • trunk/platform/g12/sub/100e/boot.c

    r1145 r1148  
    4949        if(tcb->entry == (void*)task_MovieRecord)               tcb->entry = (void*)movie_record_task; 
    5050        if(tcb->entry == (void*)task_ExpDrv)                    tcb->entry = (void*)exp_drv_task; 
    51 } 
    52  
    53 void taskHook2(context_t **context) 
    54 {  
    5551} 
    5652 
     
    178174        //http://chdk.setepontos.com/index.php/topic,4194.0.html 
    179175        *(int*)0x1938=(int)taskHook; 
    180         *(int*)0x193C=(int)taskHook2; // setting this to an empty function seems to fix startup crash in movie mode ??? 
     176        *(int*)0x193C=(int)taskHook; 
    181177     
    182178        // replacement of sub_FF864BE0 for correct power-on. 
Note: See TracChangeset for help on using the changeset viewer.