syscall_emul.hh (10793:0a4ec71cfddd) | syscall_emul.hh (10794:75f10b3e7938) |
---|---|
1/* 2 * Copyright (c) 2012-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 1260 unchanged lines hidden (view full) --- 1269 case OS::TGT_RLIMIT_DATA: 1270 // max data segment size in bytes: make up a number 1271 rlp->rlim_cur = rlp->rlim_max = 256 * 1024 * 1024; 1272 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur); 1273 rlp->rlim_max = TheISA::htog(rlp->rlim_max); 1274 break; 1275 1276 default: | 1/* 2 * Copyright (c) 2012-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 1260 unchanged lines hidden (view full) --- 1269 case OS::TGT_RLIMIT_DATA: 1270 // max data segment size in bytes: make up a number 1271 rlp->rlim_cur = rlp->rlim_max = 256 * 1024 * 1024; 1272 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur); 1273 rlp->rlim_max = TheISA::htog(rlp->rlim_max); 1274 break; 1275 1276 default: |
1277 std::cerr << "getrlimitFunc: unimplemented resource " << resource 1278 << std::endl; 1279 abort(); | 1277 warn("getrlimit: unimplemented resource %d", resource); 1278 return -EINVAL; |
1280 break; 1281 } 1282 1283 rlp.copyOut(tc->getMemProxy()); 1284 return 0; 1285} 1286 1287/// Target gettimeofday() handler. --- 155 unchanged lines hidden --- | 1279 break; 1280 } 1281 1282 rlp.copyOut(tc->getMemProxy()); 1283 return 0; 1284} 1285 1286/// Target gettimeofday() handler. --- 155 unchanged lines hidden --- |