mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-21 10:37:39 -04:00
Clear rbp
This commit is contained in:
parent
5fc6e5f94e
commit
18a55a8dd7
@ -622,6 +622,7 @@ void init_context(scheduler::process_t& process, const char* buffer, const std::
|
||||
auto regs = reinterpret_cast<interrupt::syscall_regs*>(rsp);
|
||||
|
||||
regs->rsp = scheduler::user_rsp - sizeof(interrupt::syscall_regs) - args_size; //Not sure about that
|
||||
regs->rbp = 0;
|
||||
regs->rip = header->e_entry;
|
||||
regs->cs = gdt::USER_CODE_SELECTOR + 3;
|
||||
regs->ds = gdt::USER_DATA_SELECTOR + 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user