Kernel: We can create basic userspace processes
These are still allocated on the kernel memory
This commit is contained in:
@@ -23,4 +23,14 @@ start_thread:
|
||||
continue_thread:
|
||||
movq %rdi, %rsp
|
||||
movq $0, %rax
|
||||
jmp *%rsi
|
||||
jmp *%rsi
|
||||
|
||||
# void thread_jump_userspace(uint64_t rsp, uint64_t rip)
|
||||
.global thread_jump_userspace
|
||||
thread_jump_userspace:
|
||||
pushq $0x23
|
||||
pushq %rdi
|
||||
pushfq
|
||||
pushq $0x1B
|
||||
pushq %rsi
|
||||
iretq
|
||||
|
||||
Reference in New Issue
Block a user