syscall_emul.hh (14024:abe47b13653d) syscall_emul.hh (14119:e97d6496cffa)
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

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

1965
1966 case OS::TGT_RLIMIT_DATA:
1967 // max data segment size in bytes: make up a number
1968 rlp->rlim_cur = rlp->rlim_max = 256 * 1024 * 1024;
1969 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1970 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1971 break;
1972
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

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

1965
1966 case OS::TGT_RLIMIT_DATA:
1967 // max data segment size in bytes: make up a number
1968 rlp->rlim_cur = rlp->rlim_max = 256 * 1024 * 1024;
1969 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1970 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1971 break;
1972
1973 case OS::TGT_RLIMIT_NPROC:
1974 rlp->rlim_cur = rlp->rlim_max = tc->getSystemPtr()->numContexts();
1975 rlp->rlim_cur = TheISA::htog(rlp->rlim_cur);
1976 rlp->rlim_max = TheISA::htog(rlp->rlim_max);
1977 break;
1978
1973 default:
1974 warn("getrlimit: unimplemented resource %d", resource);
1975 return -EINVAL;
1976 break;
1977 }
1978
1979 rlp.copyOut(tc->getVirtProxy());
1980 return 0;

--- 856 unchanged lines hidden ---
1979 default:
1980 warn("getrlimit: unimplemented resource %d", resource);
1981 return -EINVAL;
1982 break;
1983 }
1984
1985 rlp.copyOut(tc->getVirtProxy());
1986 return 0;

--- 856 unchanged lines hidden ---