root/platform/ixus850_sd800/sub/100e/mount.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. init_file_modules_task
  2. sub_FFB420F8_my
  3. Mount_FileSystem_my
  4. sub_FF879494_my
  5. sub_FF879228_my

   1 void __attribute__((naked,noinline)) init_file_modules_task(){
   2  asm volatile(
   3                 "STMFD   SP!, {R4,LR}\n"
   4                 "BL      _Unmount_FileSystem\n" // + 
   5                 "BL      sub_FFB420CC\n"
   6                 "SUBS    R4, R0, #0\n"
   7                 "MOV     R0, #0x5000\n"
   8                 "MOV     R1, #0\n"
   9                 "ADD     R0, R0, #6\n"
  10                 "BEQ     loc_FF9D8A80\n"
  11                 "BL      sub_FF9A9E74\n"
  12 "loc_FF9D8A80:\n"
  13                 "BL      sub_FFB420F8_my\n"  //------------->
  14                 "MOV     R0, #0x5000\n"
  15                 "CMP     R4, #0\n"
  16                 "MOV     R1, R4\n"
  17                 "ADD     R0, R0, #6\n"
  18                 "LDMNEFD SP!, {R4,PC}\n"
  19                 "LDMFD   SP!, {R4,LR}\n"
  20                 "B       sub_FF9A9E74\n"
  21  );
  22 }
  23 
  24 void __attribute__((naked,noinline)) sub_FFB420F8_my(){
  25  asm volatile(
  26                 "STR     LR, [SP,#-4]!\n"
  27                 "BL      Mount_FileSystem_my\n"
  28                 "LDR     R3, =0xBD84\n"
  29                 "LDR     R2, [R3]\n"
  30                 "CMP     R2, #0\n"
  31                 "BNE     loc_FFB42134\n"
  32                 "BL      sub_FF9F8A8C\n"
  33                 "AND     R0, R0, #0xFF\n"
  34                 "BL      sub_FF8349A8\n"
  35                 "BL      sub_FF9F8A8C\n"
  36                 "AND     R0, R0, #0xFF\n"
  37                 "BL      sub_FF86E614\n"
  38                 "BL      sub_FF9F8A9C\n"
  39                 "AND     R0, R0, #0xFF\n"
  40                 "BL      sub_FF834A84\n"
  41 "loc_FFB42134:\n"
  42                 "LDR     R2, =0xBD80\n"
  43                 "MOV     R3, #1\n"
  44                 "STR     R3, [R2]\n"
  45                 "LDR     PC, [SP],#4\n"
  46  );
  47 }
  48 
  49 void __attribute__((naked,noinline)) Mount_FileSystem_my(){
  50  asm volatile(
  51                 "STMFD   SP!, {R4-R6,LR}\n"
  52                 "MOV     R5, #0\n"
  53                 "LDR     R6, =0x2D908\n"
  54                 "MOV     R0, R5\n"
  55                 "BL      sub_FF87911C\n"
  56                 "LDR     R0, [R6,#0x38]\n"
  57                 "BL      sub_FF8787DC\n"
  58                 "SUBS    R1, R0, #0\n"
  59                 "MOV     R0, R5\n"
  60                 "BNE     loc_FF879774\n"
  61                 "LDR     R3, =0x2790\n"
  62                 "LDR     R2, =0x2788\n"
  63                 "STR     R1, [R3]\n"
  64                 "LDR     R3, =0x278C\n"
  65                 "STR     R1, [R2]\n"
  66                 "STR     R1, [R3]\n"
  67 "loc_FF879774:\n"
  68                 "BL      sub_FF87916C\n"
  69                 "MOV     R0, R5\n"
  70                 "BL      sub_FF879494_my\n"  //------------>
  71                 "MOV     R4, R0\n"
  72                 "MOV     R0, R5\n"
  73                 "BL      sub_FF87951C\n"
  74                 "AND     R4, R4, R0\n"
  75                 "MOV     R2, R4\n"
  76                 "MOV     R0, R6\n"
  77                 "LDR     R1, [R6,#0x3C]\n"
  78                 "BL      sub_FF8796E4\n"
  79                 "STR     R0, [R6,#0x40]\n"
  80                 "LDMFD   SP!, {R4-R6,PC}\n"
  81 );
  82 }
  83 
  84 void __attribute__((naked,noinline)) sub_FF879494_my(){
  85  asm volatile(
  86                 "STMFD   SP!, {R4-R7,LR}\n"
  87                 "LDR     R7, =0x278C\n"
  88                 "LDR     R3, [R7]\n"
  89                 "MOV     R4, R0\n"
  90                 "CMP     R3, #0\n"
  91                 "ADD     R3, R4, R4,LSL#1\n"
  92                 "RSB     R3, R4, R3,LSL#3\n"
  93                 "LDR     R6, =0x2D940\n"
  94                 "MOV     R5, R3,LSL#2\n"
  95                 "MOV     R1, R4\n"
  96                 "BNE     loc_FF879508\n"
  97                 "LDR     R0, [R6,R5]\n"
  98                 "BL      sub_FF879228_my\n"  //----------------->
  99                 "SUBS    R3, R0, #0\n"
 100                 "MOV     R1, R4\n"
 101                 "BEQ     loc_FF8794E0\n"
 102                 "LDR     R0, [R6,R5]\n"
 103                 "BL      sub_FF879374\n"
 104                 "MOV     R3, R0\n"
 105 "loc_FF8794E0:\n"
 106                 "CMP     R3, #0\n"
 107                 "MOV     R0, R4\n"
 108                 "BEQ     loc_FF8794F4\n"
 109                 "BL      sub_FF8788B4\n"
 110                 "MOV     R3, R0\n"
 111 "loc_FF8794F4:\n"
 112                 "CMP     R3, #0\n"
 113                 "MOV     R0, R3\n"
 114                 "MOVNE   R3, #1\n"
 115                 "STRNE   R3, [R7]\n"
 116                 "LDMFD   SP!, {R4-R7,PC}\n"
 117 "loc_FF879508:\n"
 118                 "MOV     R0, #1\n"
 119                 "LDMFD   SP!, {R4-R7,PC}\n"
 120 );
 121 }
 122 
 123 void __attribute__((naked,noinline)) sub_FF879228_my(){
 124  asm volatile(
 125                 "STMFD   SP!, {R4-R8,LR}\n"
 126                 "MOV     R5, R1\n"
 127                 "MOV     R8, R5,LSL#1\n"
 128                 "ADD     R3, R8, R5\n"
 129                 "LDR     R2, =0x2D944\n"
 130                 "SUB     SP, SP, #8\n"
 131                 "RSB     R3, R5, R3,LSL#3\n"
 132                 "LDR     R1, [R2,R3,LSL#2]\n"
 133                 "MOV     R6, #0\n"
 134                 "STR     R6, [SP]\n"
 135                 "MOV     R7, R0\n"
 136                 "STR     R6, [SP,#4]\n"
 137                 "CMP     R1, #5\n"
 138                 "LDRLS   PC, [PC,R1,LSL#2]\n"
 139                 "B       loc_FF879324\n"
 140                 ".long loc_FF8792C8\n"
 141                 ".long loc_FF87927C\n"
 142                 ".long loc_FF87927C\n"
 143                 ".long loc_FF87927C\n"
 144                 ".long loc_FF87927C\n"
 145                 ".long loc_FF879314\n"
 146 "loc_FF87927C:\n"
 147                 "MOV     R0, #3\n"
 148                 "MOV     R1, #0x200\n"
 149                 "MOV     R2, #0\n"
 150                 "BL      sub_FF812834\n"
 151                 "SUBS    R6, R0, #0\n"
 152                 "BEQ     loc_FF879358\n"
 153                 "ADD     R12, R8, R5\n"
 154                 "RSB     R12, R5, R12,LSL#3\n"
 155                 "LDR     R4, =0x2D954\n"
 156                 "MOV     R0, R7\n"
 157                 "MOV     R1, #0\n"
 158                 "MOV     R2, #1\n"
 159                 "MOV     R3, R6\n"
 160                 "MOV     LR, PC\n"
 161                 "LDR     PC, [R4,R12,LSL#2]\n"
 162                 "CMP     R0, #1\n"
 163                 "BNE     loc_FF8792D0\n"
 164                 "MOV     R0, #3\n"
 165                 "BL      sub_FF812904\n"
 166 "loc_FF8792C8:\n"
 167                 "MOV     R0, #0\n"
 168                 "B       loc_FF879358\n"
 169 "loc_FF8792D0:\n"
 170                 "MOV     R0, R7\n"
 171                 "BL      sub_FF889BE0\n"
 172                 "MOV     R1, R0\n"
 173                 "ADD     R2, SP, #4\n"
 174                 "MOV     R3, SP\n"
 175                 "MOV     R0, R6\n"
 176 
 177                 "STMFD   SP!, {R4-R11,LR}\n" // +
 178                 "BL      mbr_read\n"    //-----------> 
 179                 "LDMFD   SP!, {R4-R11,LR}\n" // +
 180 
 181      //         "BL      sub_FF8789B8\n" // original function
 182 
 183                 "MOV     R4, R0\n"
 184                 "MOV     R0, #3\n"
 185                 "BL      sub_FF812904\n"
 186                 "CMP     R4, #0\n"
 187                 "BNE     loc_FF879330\n"
 188                 "MOV     R0, R7\n"
 189                 "STR     R4, [SP,#4]\n"
 190                 "BL      sub_FF889BE0\n"
 191                 "STR     R0, [SP]\n"
 192                 "B       loc_FF879330\n"
 193 "loc_FF879314:\n"
 194                 "MOV     R3, #0\n"
 195                 "MOV     R2, #0x40\n"
 196                 "STMEA   SP, {R2,R3}\n"
 197                 "B       loc_FF879330\n"
 198 "loc_FF879324:\n"
 199                 "LDR     R0, =0xFF879010\n"
 200                 "MOV     R1, #0x2B4\n"
 201                 "BL      sub_FF813E84\n"
 202 "loc_FF879330:\n"
 203                 "LDR     R2, =0x2D908\n"
 204                 "ADD     R3, R8, R5\n"
 205                 "LDMFD   SP, {R0,R12}\n"
 206                 "RSB     R3, R5, R3,LSL#3\n"
 207                 "MOV     R3, R3,LSL#2\n"
 208                 "ADD     R1, R2, #0x48\n"
 209                 "ADD     R2, R2, #0x44\n"
 210                 "STR     R0, [R1,R3]\n"
 211                 "STR     R12, [R2,R3]\n"
 212                 "MOV     R0, #1\n"
 213 "loc_FF879358:\n"
 214                 "ADD     SP, SP, #8\n"
 215                 "LDMFD   SP!, {R4-R8,PC}\n"
 216 );
 217 }
 218 

/* [<][>][^][v][top][bottom][index][help] */