process.cc (6416:425703ea71c9) | process.cc (6420:7d0e7547be5e) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 404 unchanged lines hidden (view full) --- 413}; 414 415/// Target set_tls() handler. 416static SyscallReturn 417setTLSFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 418 ThreadContext *tc) 419{ 420 uint32_t tlsPtr = process->getSyscallArg(tc, 0); | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 404 unchanged lines hidden (view full) --- 413}; 414 415/// Target set_tls() handler. 416static SyscallReturn 417setTLSFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 418 ThreadContext *tc) 419{ 420 uint32_t tlsPtr = process->getSyscallArg(tc, 0); |
421 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, 0)); | |
422 423 tc->getMemPort()->writeBlob(ArmLinuxProcess::commPage + 0x0ff0, 424 (uint8_t *)&tlsPtr, sizeof(tlsPtr)); 425 return 0; 426} 427 428SyscallDesc ArmLinuxProcess::privSyscallDescs[] = { 429 /* 1 */ SyscallDesc("breakpoint", unimplementedFunc), --- 101 unchanged lines hidden --- | 421 422 tc->getMemPort()->writeBlob(ArmLinuxProcess::commPage + 0x0ff0, 423 (uint8_t *)&tlsPtr, sizeof(tlsPtr)); 424 return 0; 425} 426 427SyscallDesc ArmLinuxProcess::privSyscallDescs[] = { 428 /* 1 */ SyscallDesc("breakpoint", unimplementedFunc), --- 101 unchanged lines hidden --- |