syscall_emul.hh (13642:253cda14088e) | syscall_emul.hh (13649:d1bb2eb7d0f6) |
---|---|
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 --- 1417 unchanged lines hidden (view full) --- 1426 ((flags & OS::TGT_CLONE_THREAD) && !(flags & OS::TGT_CLONE_SIGHAND)) || 1427 ((flags & OS::TGT_CLONE_FS) && (flags & OS::TGT_CLONE_NEWNS)) || 1428 ((flags & OS::TGT_CLONE_NEWIPC) && (flags & OS::TGT_CLONE_SYSVSEM)) || 1429 ((flags & OS::TGT_CLONE_NEWPID) && (flags & OS::TGT_CLONE_THREAD)) || 1430 ((flags & OS::TGT_CLONE_VM) && !(newStack))) 1431 return -EINVAL; 1432 1433 ThreadContext *ctc; | 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 --- 1417 unchanged lines hidden (view full) --- 1426 ((flags & OS::TGT_CLONE_THREAD) && !(flags & OS::TGT_CLONE_SIGHAND)) || 1427 ((flags & OS::TGT_CLONE_FS) && (flags & OS::TGT_CLONE_NEWNS)) || 1428 ((flags & OS::TGT_CLONE_NEWIPC) && (flags & OS::TGT_CLONE_SYSVSEM)) || 1429 ((flags & OS::TGT_CLONE_NEWPID) && (flags & OS::TGT_CLONE_THREAD)) || 1430 ((flags & OS::TGT_CLONE_VM) && !(newStack))) 1431 return -EINVAL; 1432 1433 ThreadContext *ctc; |
1434 if (!(ctc = p->findFreeContext())) 1435 fatal("clone: no spare thread context in system"); | 1434 if (!(ctc = p->findFreeContext())) { 1435 DPRINTF_SYSCALL(Verbose, "clone: no spare thread context in system" 1436 "[cpu %d, thread %d]", tc->cpuId(), tc->threadId()); 1437 return -EAGAIN; 1438 } |
1436 1437 /** 1438 * Note that ProcessParams is generated by swig and there are no other 1439 * examples of how to create anything but this default constructor. The 1440 * fields are manually initialized instead of passing parameters to the 1441 * constructor. 1442 */ 1443 ProcessParams *pp = new ProcessParams(); --- 1247 unchanged lines hidden --- | 1439 1440 /** 1441 * Note that ProcessParams is generated by swig and there are no other 1442 * examples of how to create anything but this default constructor. The 1443 * fields are manually initialized instead of passing parameters to the 1444 * constructor. 1445 */ 1446 ProcessParams *pp = new ProcessParams(); --- 1247 unchanged lines hidden --- |