diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/saturn-mkboot.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/saturn-mkboot.c b/src/saturn-mkboot.c index 7551059..2ddd0ed 100644 --- a/src/saturn-mkboot.c +++ b/src/saturn-mkboot.c @@ -245,15 +245,16 @@ int main(int argc, char **argv) if (process_args(argc, argv)) return 1; + ipsize = load_security_code(ipout); + if (ipsize == -1) goto fail; + ipout += ipsize; + for (int i = 0; i < 8; i++) { serialize_region_code(ipout, find_symbol(regiondefs, sysid.regions[i])); ipout += 32; sysid.bootsize += 32; } - ipsize = load_security_code(ipout); - if (ipsize == -1) goto fail; - ipout += ipsize; ipsize = load_ip(ipout, sizeof ipbuf - (ipout - ipbuf)); if (ipsize == -1) goto fail; sysid.bootsize += ipsize; |