Changeset 947


Ignore:
Timestamp:
09/26/10 00:10:04 (3 years ago)
Author:
reyalp
Message:

save a small amount of memory on d10, fix some misleading comments in sd990

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/loader/d10/entry.S

    r897 r947  
    11    .section .entry 
    22 
    3 // Turn OFF SD Card power 
    4 // to support autostart 
    5         LDR     R3, =0xC0220018 // d10 sub_FF856670 = sd990 sub_FF85A02C 
    6         MOV     R2, #0x44 
    7         STR     R2, [R3] 
    8  
    9 // looks like idle cycle is required for proper shutdown 
    10 // not known if needed for D10 
    11         MOV     R3, #0x8000 
    12 1: 
    13         SUB     R3, R3, #1 
    14         CMP     R3, #0 
    15         BNE     1b 
     3// SD card off stuff doesn't appear to be needed 
    164 
    175// ordinary startup... 
  • trunk/platform/d10/sub/100a/boot.c

    r945 r947  
    196196"                LDR     R0, =0x19B\n" 
    197197"                LDR     R1, =sub_FF814D38_my\n" 
     198"                LDR     PC, =0xFF811018\n" // jump back to original FW 
     199/* 
    198200"                STR     R0, [SP,#0x20]\n" 
    199201"                MOV     R0, #0x96\n" 
     
    217219"                MOV     R2, #0\n" 
    218220"                BL      sub_FF812D68\n" 
    219 "                ADD     SP, SP, #0x74\n" 
    220 "                LDR     PC, [SP],#4\n" 
     221// will never return 
     222//"                ADD     SP, SP, #0x74\n" 
     223//"                LDR     PC, [SP],#4\n" 
     224*/ 
    221225        ); 
    222226} 
     
    312316"                BL      sub_FF829308\n" 
    313317"                BL      taskcreatePhySw_my\n"  // we do this here rather than hook so we don't waste the original stack 
     318"                LDR     PC, =0xFF81C230\n" // jump back to original firmware 
     319/* 
    314320//"                BL      sub_FF821A88\n" // taskcreate_PhySw 
    315321"                BL      sub_FF824ADC\n" 
     
    325331"                LDMFD   SP!, {R4,LR}\n" 
    326332"                B       sub_FF8154B4\n" // LOCATION: MLHClock.c:0 
     333*/ 
    327334        ); 
    328335} 
     
    384391"                MOV     R0, #3\n" 
    385392"                BL      sub_FF855974_my\n" // -> (Mounter.c) 
     393"                LDR     PC,=0xFF8725A8\n" //jump back to firmware 
     394/* 
    386395//"                BL      nullsub_64\n" 
    387396"                LDR     R4, =0x2E20\n" 
     
    399408"                STR     R0, [R4]\n" 
    400409"                LDMFD   SP!, {R4,PC}\n" 
    401  
     410*/ 
    402411 ); 
    403412}  
     
    427436"                MOV     R0, R5\n" 
    428437"                BL      sub_FF855714_my\n" // -> 
     438"                LDR     PC,=0xFF8559CC\n" // jump back to original fw 
     439/* 
    429440"                MOV     R7, R0\n" 
    430441"                MOV     R0, R5\n" 
     
    458469"                BEQ     sub_FF8115A8\n" // qPrintf 
    459470"                LDMFD   SP!, {R4-R8,PC}\n" 
    460  
     471*/ 
    461472 ); 
    462473}  
     
    475486"                MOV     R1, R5\n" 
    476487"                BL      sub_FF8554A4_my\n" // -> (Mounter.c) 
     488"                LDR     PC, =0xFF855740\n" // jump back to origina fw 
     489/* 
    477490"                CMP     R0, #0\n" 
    478491"                LDMEQFD SP!, {R4-R6,PC}\n" 
     
    489502"                STRNE   R1, [R4,#0x70]\n" 
    490503"                LDMFD   SP!, {R4-R6,PC}\n" 
     504*/ 
    491505 ); 
    492506}  
  • trunk/platform/ixus980_sd990/sub/100e/boot.c

    r746 r947  
    4040 
    4141 
    42     // enable caches and write buffer... this is a carryover from old dryos ports, may not be useful 
     42    // enable caches and write buffer, disabled earlier in loader  
    4343    asm volatile ( 
    4444        "MRC     p15, 0, R0,c1,c0\n" 
  • trunk/platform/ixus980_sd990/sub/101b/boot.c

    r792 r947  
    4040 
    4141 
    42     // enable caches and write buffer... this is a carryover from old dryos ports, may not be useful 
     42    // enable caches and write buffer, disabled earlier in loader  
    4343    asm volatile ( 
    4444        "MRC     p15, 0, R0,c1,c0\n" 
Note: See TracChangeset for help on using the changeset viewer.