1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-29 21:12:06 +00:00

nyx: info: add mov r1 print for patched t210

This commit is contained in:
CTCaer 2022-05-16 13:06:40 +03:00
parent e9587a325c
commit 7459214fed

View file

@ -173,7 +173,7 @@ static lv_res_t _bootrom_dump_window_action(lv_obj_t * btn)
static lv_res_t _fuse_dump_window_action(lv_obj_t * btn) static lv_res_t _fuse_dump_window_action(lv_obj_t * btn)
{ {
const u32 fuse_array_size = (h_cfg.t210b01 ? 256 : 192) * sizeof(u32); const u32 fuse_array_size = (h_cfg.t210b01 ? FUSE_ARRAY_WORDS_NUM_T210B01 : FUSE_ARRAY_WORDS_NUM) * sizeof(u32);
int error = !sd_mount(); int error = !sd_mount();
if (!error) if (!error)
@ -193,7 +193,7 @@ static lv_res_t _fuse_dump_window_action(lv_obj_t * btn)
error = sd_save_to_file((u8 *)0x7000F900, 0x300, path); error = sd_save_to_file((u8 *)0x7000F900, 0x300, path);
} }
u32 words[256]; u32 words[FUSE_ARRAY_WORDS_NUM_T210B01];
fuse_read_array(words); fuse_read_array(words);
if (!h_cfg.t210b01) if (!h_cfg.t210b01)
emmcsn_path_impl(path, "/dumps", "fuse_array_raw_t210.bin", NULL); emmcsn_path_impl(path, "/dumps", "fuse_array_raw_t210.bin", NULL);
@ -1002,6 +1002,9 @@ static void _ipatch_process(u32 offset, u32 value)
case 0x20: case 0x20:
s_printf(ipatches_txt + strlen(ipatches_txt), "MOVS R0, ##0x%02X", lo); s_printf(ipatches_txt + strlen(ipatches_txt), "MOVS R0, ##0x%02X", lo);
break; break;
case 0x21:
s_printf(ipatches_txt + strlen(ipatches_txt), "MOVS R1, ##0x%02X", lo);
break;
case 0xDF: case 0xDF:
s_printf(ipatches_txt + strlen(ipatches_txt), "SVC ##0x%02X", lo); s_printf(ipatches_txt + strlen(ipatches_txt), "SVC ##0x%02X", lo);
break; break;