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

@ -777,6 +777,7 @@ sysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
sysinfo->uptime = seconds_since_epoch; sysinfo->uptime = seconds_since_epoch;
sysinfo->totalram = process->system->memSize(); sysinfo->totalram = process->system->memSize();
sysinfo->mem_unit = 1;
sysinfo.copyOut(tc->getMemProxy()); sysinfo.copyOut(tc->getMemProxy());