syscall_emul.hh (13539:22b36f5a7a95) | syscall_emul.hh (13557:fc33e6048b25) |
---|---|
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 --- 1261 unchanged lines hidden (view full) --- 1270} 1271 1272template <class OS> 1273SyscallReturn 1274cloneFunc(SyscallDesc *desc, int callnum, Process *p, ThreadContext *tc) 1275{ 1276 int index = 0; 1277 | 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 --- 1261 unchanged lines hidden (view full) --- 1270} 1271 1272template <class OS> 1273SyscallReturn 1274cloneFunc(SyscallDesc *desc, int callnum, Process *p, ThreadContext *tc) 1275{ 1276 int index = 0; 1277 |
1278 TheISA::IntReg flags = p->getSyscallArg(tc, index); 1279 TheISA::IntReg newStack = p->getSyscallArg(tc, index); | 1278 RegVal flags = p->getSyscallArg(tc, index); 1279 RegVal newStack = p->getSyscallArg(tc, index); |
1280 Addr ptidPtr = p->getSyscallArg(tc, index); 1281 1282#if THE_ISA == RISCV_ISA or THE_ISA == ARM_ISA 1283 /** 1284 * Linux sets CLONE_BACKWARDS flag for RISC-V and Arm. 1285 * The flag defines the list of clone() arguments in the following 1286 * order: flags -> newStack -> ptidPtr -> tlsPtr -> ctidPtr 1287 */ --- 797 unchanged lines hidden --- | 1280 Addr ptidPtr = p->getSyscallArg(tc, index); 1281 1282#if THE_ISA == RISCV_ISA or THE_ISA == ARM_ISA 1283 /** 1284 * Linux sets CLONE_BACKWARDS flag for RISC-V and Arm. 1285 * The flag defines the list of clone() arguments in the following 1286 * order: flags -> newStack -> ptidPtr -> tlsPtr -> ctidPtr 1287 */ --- 797 unchanged lines hidden --- |