diff options
author | Marvin Borner | 2020-08-05 18:28:26 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-05 18:28:26 +0200 |
commit | 4af62bb53676b7f721b46cabee78cac3a557e924 (patch) | |
tree | b9c7e615c3226d9822c22cdb6cdb326f379db73f /src/features/load.c | |
parent | b7f59b28b380d55f9e7abd8e450f1f9c7f050221 (diff) |
Some proc things
Diffstat (limited to 'src/features/load.c')
-rw-r--r-- | src/features/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/load.c b/src/features/load.c index 62da8b4..bc56235 100644 --- a/src/features/load.c +++ b/src/features/load.c @@ -11,7 +11,7 @@ void bin_load(char *path, struct proc *proc) char *data = read_file(path); u32 stack = (u32)malloc(0x1000) + 0x1000; - proc->regs.ebp = stack; - proc->regs.esp = stack; + proc->regs.ebp = (u32)stack; + proc->regs.esp = (u32)stack; proc->regs.eip = (u32)data; } |