Add a kernel ELF module and load it in a new process.
Don't yet jump to userspace.
This commit is contained in:
parent
f86bbe6ea9
commit
aefb4f082b
22 changed files with 223 additions and 16 deletions
|
|
@ -9,7 +9,7 @@ class Thread {
|
|||
public:
|
||||
static Thread* RootThread(Process* root_proc);
|
||||
|
||||
explicit Thread(Process* proc, uint64_t tid);
|
||||
explicit Thread(Process* proc, uint64_t tid, uint64_t elf_ptr);
|
||||
|
||||
uint64_t tid() { return id_; };
|
||||
uint64_t pid();
|
||||
|
|
@ -31,6 +31,8 @@ class Thread {
|
|||
Process* process_;
|
||||
uint64_t id_;
|
||||
|
||||
uint64_t elf_ptr_;
|
||||
|
||||
// Stack pointer to take on resume.
|
||||
// Stack will contain the full thread context.
|
||||
uint64_t rsp0_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue