root/platform/g7/sub/100g/mount.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_file_modules_task
  2. sub_FFB7F318_my
  3. Mount_FileSystem_my
  4. sub_FF87BBD4_my
  5. sub_FF87B968_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_FFB7F2EC\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_FF9E505C\n"
  11                 "BL      sub_FF9B1A04\n"
  12 "loc_FF9E505C:\n"
  13                 "BL      sub_FFB7F318_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_FF9B1A04\n"
  21  );
  22 }
  23 
  24 void __attribute__((naked,noinline)) sub_FFB7F318_my(){
  25  asm volatile(
  26                 "STR     LR, [SP,#-4]!\n"
  27                 "BL      Mount_FileSystem_my\n"   //------------------->
  28                 "LDR     R3, =0xC7E8\n"
  29                 "LDR     R2, [R3]\n"
  30                 "CMP     R2, #0\n"
  31                 "BNE     loc_FFB7F354\n"
  32                 "BL      sub_FFA12C00\n"
  33                 "AND     R0, R0, #0xFF\n"
  34                 "BL      sub_FF8363D4\n"
  35                 "BL      sub_FFA12C00\n"
  36                 "AND     R0, R0, #0xFF\n"
  37                 "BL      sub_FF870664\n"
  38                 "BL      sub_FFA12C10\n"
  39                 "AND     R0, R0, #0xFF\n"
  40                 "BL      sub_FF8364B0\n"
  41 "loc_FFB7F354:\n"
  42                 "LDR     R2, =0xC7E4\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, =0x2E3C0\n"
  54                 "MOV     R0, R5\n"
  55                 "BL      sub_FF87B85C\n"
  56                 "LDR     R0, [R6,#0x38]\n"
  57                 "BL      sub_FF87AF1C\n"
  58                 "SUBS    R1, R0, #0\n"
  59                 "MOV     R0, R5\n"
  60                 "BNE     loc_FF87BEB4\n"
  61                 "LDR     R3, =0x29A0\n"
  62                 "LDR     R2, =0x2998\n"
  63                 "STR     R1, [R3]\n"
  64                 "LDR     R3, =0x299C\n"
  65                 "STR     R1, [R2]\n"
  66                 "STR     R1, [R3]\n"
  67 "loc_FF87BEB4:\n"
  68                 "BL      sub_FF87B8AC\n"
  69                 "MOV     R0, R5\n"
  70                 "BL      sub_FF87BBD4_my\n"    //--------------->
  71                 "MOV     R4, R0\n"
  72                 "MOV     R0, R5\n"
  73                 "BL      sub_FF87BC5C\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_FF87BE24\n"
  79                 "STR     R0, [R6,#0x40]\n"
  80                 "LDMFD   SP!, {R4-R6,PC}\n"
  81  );
  82 }
  83 
  84 void __attribute__((naked,noinline)) sub_FF87BBD4_my(){
  85  asm volatile(
  86                 "STMFD   SP!, {R4-R7,LR}\n"
  87                 "LDR     R7, =0x299C\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, =0x2E3F8\n"
  94                 "MOV     R5, R3,LSL#2\n"
  95                 "MOV     R1, R4\n"
  96                 "BNE     loc_FF87BC48\n"
  97                 "LDR     R0, [R6,R5]\n"
  98                 "BL      sub_FF87B968_my\n"  //------------->
  99                 "SUBS    R3, R0, #0\n"
 100                 "MOV     R1, R4\n"
 101                 "BEQ     loc_FF87BC20\n"
 102                 "LDR     R0, [R6,R5]\n"
 103                 "BL      sub_FF87BAB4\n"
 104                 "MOV     R3, R0\n"
 105 "loc_FF87BC20:\n"
 106                 "CMP     R3, #0\n"
 107                 "MOV     R0, R4\n"
 108                 "BEQ     loc_FF87BC34\n"
 109                 "BL      sub_FF87AFF4\n"
 110                 "MOV     R3, R0\n"
 111 "loc_FF87BC34:\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_FF87BC48:\n"
 118                 "MOV     R0, #1\n"
 119                 "LDMFD   SP!, {R4-R7,PC}\n"
 120  );
 121 }
 122 
 123 void __attribute__((naked,noinline)) sub_FF87B968_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, =0x2E3FC\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_FF87BA64\n"
 140                 ".long loc_FF87BA08\n"
 141                 ".long loc_FF87B9BC\n"
 142                 ".long loc_FF87B9BC\n"
 143                 ".long loc_FF87B9BC\n"
 144                 ".long loc_FF87B9BC\n"
 145                 ".long loc_FF87BA54\n"
 146 "loc_FF87B9BC:\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_FF87BA98\n"
 153                 "ADD     R12, R8, R5\n"
 154                 "RSB     R12, R5, R12,LSL#3\n"
 155                 "LDR     R4, =0x2E40C\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_FF87BA10\n"
 164                 "MOV     R0, #3\n"
 165                 "BL      sub_FF812904\n"
 166 "loc_FF87BA08:\n"
 167                 "MOV     R0, #0\n"
 168                 "B       loc_FF87BA98\n"
 169 "loc_FF87BA10:\n"
 170                 "MOV     R0, R7\n"
 171                 "BL      sub_FF88C3B0\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_FF87B0F8\n"  // original
 182 
 183                 "MOV     R4, R0\n"
 184                 "MOV     R0, #3\n"
 185                 "BL      sub_FF812904\n"
 186                 "CMP     R4, #0\n"
 187                 "BNE     loc_FF87BA70\n"
 188                 "MOV     R0, R7\n"
 189                 "STR     R4, [SP,#4]\n"
 190                 "BL      sub_FF88C3B0\n"
 191                 "STR     R0, [SP]\n"
 192                 "B       loc_FF87BA70\n"
 193 "loc_FF87BA54:\n"
 194                 "MOV     R3, #0\n"
 195                 "MOV     R2, #0x40\n"
 196                 "STMEA   SP, {R2,R3}\n"
 197                 "B       loc_FF87BA70\n"
 198 "loc_FF87BA64:\n"
 199                 "LDR     R0, =0xFF87B750\n"  // aMounter_c
 200                 "MOV     R1, #0x2B4\n"
 201                 "BL      sub_FF813D70\n" // DebugAssert
 202 "loc_FF87BA70:\n"
 203                 "LDR     R2, =0x2E3C0\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_FF87BA98:\n"
 214                 "ADD     SP, SP, #8\n"
 215                 "LDMFD   SP!, {R4-R8,PC}\n"
 216  );
 217 }
 218 

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