IPC: Fix incorrect parsing of X descriptor addresses

This commit is contained in:
Michael Scire 2018-04-18 21:08:38 -06:00 committed by plutoo
parent f727aa669a
commit b18854555a

View File

@ -371,7 +371,7 @@ static inline Result ipcParse(IpcParsedCommand* r) {
IpcStaticSendDescriptor* desc = (IpcStaticSendDescriptor*) buf; IpcStaticSendDescriptor* desc = (IpcStaticSendDescriptor*) buf;
u64 packed = (u64) desc->Packed; u64 packed = (u64) desc->Packed;
r->Statics[i] = (void*) (desc->Addr | ((packed & 15) << 32) | (((packed >> 6) & 15) << 36)); r->Statics[i] = (void*) (desc->Addr | (((packed >> 12) & 15) << 32) | (((packed >> 6) & 15) << 36));
r->StaticSizes[i] = packed >> 16; r->StaticSizes[i] = packed >> 16;
r->StaticIndices[i] = packed & 63; r->StaticIndices[i] = packed & 63;
} }