syscall_emul: extend sysinfo system call to include mem_unit

This commit is contained in:
Brandon Potter 2016-12-15 13:14:41 -05:00
parent ecf68fac40
commit 4ff1b165d0

View file

@ -775,8 +775,9 @@ sysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
TypedBufferArg<typename OS::tgt_sysinfo>
sysinfo(process->getSyscallArg(tc, index));
sysinfo->uptime=seconds_since_epoch;
sysinfo->totalram=process->system->memSize();
sysinfo->uptime = seconds_since_epoch;
sysinfo->totalram = process->system->memSize();
sysinfo->mem_unit = 1;
sysinfo.copyOut(tc->getMemProxy());