aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-30 23:49:05 -0400
committerIan Moffett <ian@osmora.org>2024-06-30 23:49:05 -0400
commit582ed742216fd87bb3f4103d795dca19e3357ff4 (patch)
tree4e9dbb560cd2b0ffdae610a1eb6a1e9672da8c08 /sys/include
parent974d7ce527c9220fcdad44b27b4a2b44054502c2 (diff)
kernel/amd64: proc: Add setregs()
This function will be useful for things like exec in order to setup registers which are machine dependent. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/exec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/exec.h b/sys/include/sys/exec.h
index 1291479..4910ff2 100644
--- a/sys/include/sys/exec.h
+++ b/sys/include/sys/exec.h
@@ -58,6 +58,7 @@ struct exec_prog {
int elf64_load(const char *pathname, struct proc *td, struct exec_prog *prog);
void elf_unload(struct proc *td, struct exec_prog *prog);
+void setregs(struct proc *td, struct exec_prog *prog, uintptr_t stack);
#endif /* _KERNEL */
#endif /* !_SYS_EXEC_H_ */