Skip to content

Commit 91d2526

Browse files
committed
fix gen_tos
1 parent 3512941 commit 91d2526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen_tos-noavb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int main(int argc, char **argv)
159159
else
160160
mov_count--;
161161
printf("patch mov at 0x%zx\n", pmov[mov_count]);
162-
*(uint32_t *)&mem[mov_count] = 0x52800000;
162+
*(uint32_t *)&mem[pmov[mov_count]] = 0x52800000;
163163
file = fopen("tos-noavb.bin", "wb");
164164
if (file == NULL)
165165
ERR_EXIT("Failed to create the file.\n");

0 commit comments

Comments
 (0)