syscall_emul: extend sysinfo system call to include mem_unit
This commit is contained in:
parent
ecf68fac40
commit
4ff1b165d0
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue