syscall_emul.hh (10484:6709bbcf564d) syscall_emul.hh (10485:5aa65300f44f)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

1251
1252 if (use_provided_address) {
1253 // check to see if the desired address is already in use
1254 if (!p->pTable->isUnmapped(start, length)) {
1255 // there are existing mappings in the desired range
1256 // whether we clobber them or not depends on whether the caller
1257 // specified MAP_FIXED
1258 if (flags & OS::TGT_MAP_FIXED) {
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

1251
1252 if (use_provided_address) {
1253 // check to see if the desired address is already in use
1254 if (!p->pTable->isUnmapped(start, length)) {
1255 // there are existing mappings in the desired range
1256 // whether we clobber them or not depends on whether the caller
1257 // specified MAP_FIXED
1258 if (flags & OS::TGT_MAP_FIXED) {
1259 // MAP_FIXED specified: clobber existing mappings
1260 warn("mmap: MAP_FIXED at 0x%x overwrites existing mappings\n",
1261 start);
1262 clobber = true;
1259 // MAP_FIXED specified: map attempt fails
1260 return -EINVAL;
1263 } else {
1264 // MAP_FIXED not specified: ignore suggested start address
1265 warn("mmap: ignoring suggested map address 0x%x\n", start);
1266 use_provided_address = false;
1267 }
1268 }
1269 }
1270

--- 209 unchanged lines hidden ---
1261 } else {
1262 // MAP_FIXED not specified: ignore suggested start address
1263 warn("mmap: ignoring suggested map address 0x%x\n", start);
1264 use_provided_address = false;
1265 }
1266 }
1267 }
1268

--- 209 unchanged lines hidden ---