From 582ed742216fd87bb3f4103d795dca19e3357ff4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 30 Jun 2024 23:49:05 -0400 Subject: 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 --- sys/include/sys/exec.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include') 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_ */ -- cgit v1.2.3