summaryrefslogtreecommitdiff
path: root/src/lib/selfboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/selfboot.c')
-rw-r--r--src/lib/selfboot.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index 4c5fbad8ff..fe73c0c451 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -437,8 +437,22 @@ static int load_self_segments(
memcpy((char*)to, (char*)from, amount);
}
}
+
+ /*
+ * Each architecture can perform additonal operations
+ * on the loaded segment
+ */
+ arch_program_segment_loaded((uintptr_t)dest,
+ ptr->s_memsz);
}
}
+
+ /*
+ * Each architecture can perform additonal operations once the entire
+ * program is loaded
+ */
+ arch_program_loaded();
+
return 1;
}