syscall_emul.hh (11911:fecd8de0ec8e) | syscall_emul.hh (11913:427ac0f00e57) |
---|---|
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 --- 1470 unchanged lines hidden (view full) --- 1479 tgt_flags, tgt_fd, offset); 1480 } 1481 1482 auto ffdp = std::dynamic_pointer_cast<FileFDEntry>(fdep); 1483 if (!ffdp) 1484 return -EBADF; 1485 sim_fd = ffdp->getSimFD(); 1486 | 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 --- 1470 unchanged lines hidden (view full) --- 1479 tgt_flags, tgt_fd, offset); 1480 } 1481 1482 auto ffdp = std::dynamic_pointer_cast<FileFDEntry>(fdep); 1483 if (!ffdp) 1484 return -EBADF; 1485 sim_fd = ffdp->getSimFD(); 1486 |
1487 pmap = (decltype(pmap))mmap(NULL, length, PROT_READ, MAP_PRIVATE, | 1487 pmap = (decltype(pmap))mmap(nullptr, length, PROT_READ, MAP_PRIVATE, |
1488 sim_fd, offset); 1489 1490 if (pmap == (decltype(pmap))-1) { 1491 warn("mmap: failed to map file into host address space"); 1492 return -errno; 1493 } 1494 } 1495 --- 504 unchanged lines hidden --- | 1488 sim_fd, offset); 1489 1490 if (pmap == (decltype(pmap))-1) { 1491 warn("mmap: failed to map file into host address space"); 1492 return -errno; 1493 } 1494 } 1495 --- 504 unchanged lines hidden --- |