Fatal: fix marshalling

This commit is contained in:
Michael Scire 2018-07-28 18:24:19 -07:00
parent a6492e9888
commit 81e6972ae1

View File

@ -37,8 +37,9 @@ void fatalWithType(Result err, FatalType type) {
struct {
u64 magic;
u64 cmd_id;
u64 result;
u64 type;
u32 result;
u32 type;
u64 pid_placeholder;
} *raw;
raw = ipcPrepareHeader(&c, sizeof(*raw));
@ -47,6 +48,7 @@ void fatalWithType(Result err, FatalType type) {
raw->cmd_id = 1;
raw->result = err;
raw->type = type;
raw->pid_placeholder = 0; // Overwritten by fatal with PID descriptor.
ipcDispatch(srv);
}