syscall_emul.hh (11624:9796e43e751d) | syscall_emul.hh (11758:104a404d426e) |
---|---|
1/* 2 * Copyright (c) 2012-2013, 2015 ARM Limited 3 * Copyright (c) 2015 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 761 unchanged lines hidden (view full) --- 770sysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 771 ThreadContext *tc) 772{ 773 774 int index = 0; 775 TypedBufferArg<typename OS::tgt_sysinfo> 776 sysinfo(process->getSyscallArg(tc, index)); 777 | 1/* 2 * Copyright (c) 2012-2013, 2015 ARM Limited 3 * Copyright (c) 2015 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 761 unchanged lines hidden (view full) --- 770sysinfoFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 771 ThreadContext *tc) 772{ 773 774 int index = 0; 775 TypedBufferArg<typename OS::tgt_sysinfo> 776 sysinfo(process->getSyscallArg(tc, index)); 777 |
778 sysinfo->uptime=seconds_since_epoch; 779 sysinfo->totalram=process->system->memSize(); | 778 sysinfo->uptime = seconds_since_epoch; 779 sysinfo->totalram = process->system->memSize(); 780 sysinfo->mem_unit = 1; |
780 781 sysinfo.copyOut(tc->getMemProxy()); 782 783 return 0; 784} 785 786/// Target chmod() handler. 787template <class OS> --- 880 unchanged lines hidden --- | 781 782 sysinfo.copyOut(tc->getMemProxy()); 783 784 return 0; 785} 786 787/// Target chmod() handler. 788template <class OS> --- 880 unchanged lines hidden --- |