proc: fix PUTONSTACK argument order
@@ -790,9 +790,9 @@ void proc_exit(int code)
kstack = current->kstack = current->execkstack;
kstack += current->kstacksz;
- PUTONSTACK(kstack, thread_t *, current);
- PUTONSTACK(kstack, process_spawn_t *, spawn);
PUTONSTACK(kstack, int, FORKED);
+ PUTONSTACK(kstack, process_spawn_t *, spawn);
+ PUTONSTACK(kstack, thread_t *, current);
hal_jmp(proc_vforkedExit, kstack, NULL, 3);
}
@@ -979,9 +979,9 @@ int proc_fork(void)
if (err < 0) {
kstack = current->kstack + current->kstacksz;
- PUTONSTACK(kstack, thread_t *, current);
- PUTONSTACK(kstack, process_spawn_t *, current->execdata);
PUTONSTACK(kstack, int, err);
+ PUTONSTACK(kstack, process_spawn_t *, current->execdata);
+ PUTONSTACK(kstack, thread_t *, current);
hal_jmp(proc_vforkedExit, kstack, NULL, 3);
}
}
