Changeset 1444 for trunk/tools/finsig_dryos.c
- Timestamp:
- 12/02/11 05:32:17 (18 months ago)
- File:
-
- 1 edited
-
trunk/tools/finsig_dryos.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/finsig_dryos.c
r1436 r1444 2764 2764 { 2765 2765 osig *o = find_sig(stubs_min,name); 2766 bprintf("//DEF(%-40s,0x%08x) // Found @0x%08x",name,fadr,atadr);2767 2766 if (o) 2768 2767 { 2768 bprintf("//DEF(%-40s,0x%08x) // Found @0x%08x",name,fadr,atadr); 2769 2769 if (fadr != o->val) 2770 2770 { … … 2776 2776 } 2777 2777 } 2778 else 2779 { 2780 bprintf("DEF(%-40s,0x%08x) // Found @0x%08x",name,fadr,atadr); 2781 } 2778 2782 bprintf("\n"); 2779 2783 } … … 2787 2791 add_blankline(); 2788 2792 2789 bprintf("// Values below goin 'stubs_min.S':\n");2793 bprintf("// Values below can be overridden in 'stubs_min.S':\n"); 2790 2794 2791 2795 // Find 'physw_status' … … 3080 3084 } 3081 3085 } 3086 } 3087 3088 //------------------------------------------------------------------------------------------------------------ 3089 3090 // Search for things that go in 'stubs_min.S' 3091 void find_other_vals(firmware *fw) 3092 { 3093 out_hdr = 1; 3094 add_blankline(); 3095 3096 bprintf("// Misc stuff\n"); 3097 3098 unsigned char ctypes[] = 3099 { 3100 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x60, 0x60, 0x60, 0x60, 0x60, 0x20, 0x20, 3101 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 3102 0x48, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 3103 0x84, 0x84, 0x84, 0x84, 0x84, 0x84, 0x84, 0x84, 0x84, 0x84, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 3104 0x10, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3105 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0x10, 0x10, 0x10, 0x10, 0x10, 3106 0x10, 0x82, 0x82, 0x82, 0x82, 0x82, 0x82, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3107 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0x10, 0x10, 0x10, 0x10, 0x20 3108 }; 3109 3110 unsigned char *p = (unsigned char*)fw->buf; 3111 int i, found = 0; 3112 for (i=0; i<fw->size*4-sizeof(ctypes); i++, p++) 3113 { 3114 if (memcmp(p,ctypes,sizeof(ctypes)) == 0) 3115 { 3116 bprintf("DEF(ctypes, 0x%08x)\n", fw->base + i); 3117 found = 1; 3118 break; 3119 } 3120 } 3121 if (!found) 3122 { 3123 bprintf("//DEF(ctypes, *** Not Found ***)\n"); 3124 } 3082 3125 } 3083 3126 … … 3393 3436 find_key_vals(&fw); 3394 3437 find_platform_vals(&fw); 3438 find_other_vals(&fw); 3395 3439 3396 3440 fprintf(stderr,"Time to generate stubs %.2f seconds\n",(double)(t2-t1)/(double)CLOCKS_PER_SEC);
Note: See TracChangeset
for help on using the changeset viewer.