syscall_emul.hh (12461:a4cb506cda74) syscall_emul.hh (12593:79d55cbe84aa)
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

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

1726 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1727 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1728 break;
1729 case OS::TGT_RLIMIT_DATA:
1730 // max data segment size in bytes: make up a number
1731 rlp->rlim_cur = rlp->rlim_max = 256*1024*1024;
1732 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1733 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
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

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

1726 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1727 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1728 break;
1729 case OS::TGT_RLIMIT_DATA:
1730 // max data segment size in bytes: make up a number
1731 rlp->rlim_cur = rlp->rlim_max = 256*1024*1024;
1732 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1733 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1734 break;
1734 default:
1735 warn("prlimit: unimplemented resource %d", resource);
1736 return -EINVAL;
1737 break;
1738 }
1739 rlp.copyOut(tc->getMemProxy());
1740 }
1741 return 0;

--- 334 unchanged lines hidden ---
1735 default:
1736 warn("prlimit: unimplemented resource %d", resource);
1737 return -EINVAL;
1738 break;
1739 }
1740 rlp.copyOut(tc->getMemProxy());
1741 }
1742 return 0;

--- 334 unchanged lines hidden ---