syscall_emul.hh (12334:e0ab29a34764) syscall_emul.hh (12416:3c2a005993a0)
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

--- 1691 unchanged lines hidden (view full) ---

1700 }
1701 int resource = process->getSyscallArg(tc, index);
1702 Addr n = process->getSyscallArg(tc, index);
1703 if (n != 0)
1704 warn("prlimit: ignoring new rlimit");
1705 Addr o = process->getSyscallArg(tc, index);
1706 if (o != 0)
1707 {
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

--- 1691 unchanged lines hidden (view full) ---

1700 }
1701 int resource = process->getSyscallArg(tc, index);
1702 Addr n = process->getSyscallArg(tc, index);
1703 if (n != 0)
1704 warn("prlimit: ignoring new rlimit");
1705 Addr o = process->getSyscallArg(tc, index);
1706 if (o != 0)
1707 {
1708 TypedBufferArg rlp(
1709 process->getSyscallArg(tc, index));
1708 TypedBufferArg<typename OS::rlimit> rlp(o);
1710 switch (resource) {
1711 case OS::TGT_RLIMIT_STACK:
1712 // max stack size in bytes: make up a number (8MB for now)
1713 rlp->rlim_cur = rlp->rlim_max = 8 * 1024 * 1024;
1714 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1715 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1716 break;
1717 case OS::TGT_RLIMIT_DATA:

--- 346 unchanged lines hidden ---
1709 switch (resource) {
1710 case OS::TGT_RLIMIT_STACK:
1711 // max stack size in bytes: make up a number (8MB for now)
1712 rlp->rlim_cur = rlp->rlim_max = 8 * 1024 * 1024;
1713 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1714 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1715 break;
1716 case OS::TGT_RLIMIT_DATA:

--- 346 unchanged lines hidden ---