Deleted Added
sdiff udiff text old ( 8324:aa7a67647c7b ) new ( 8600:b0d7c64ada19 )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

1022 if ((start % TheISA::VMPageSize) != 0 ||
1023 (length % TheISA::VMPageSize) != 0) {
1024 warn("mmap failing: arguments not page-aligned: "
1025 "start 0x%x length 0x%x",
1026 start, length);
1027 return -EINVAL;
1028 }
1029
1030 if (start != 0) {
1031 warn("mmap: ignoring suggested map address 0x%x, using 0x%x",
1032 start, p->mmap_end);
1033 }
1034
1035 // pick next address from our "mmap region"
1036 if (OS::mmapGrowsDown()) {
1037 start = p->mmap_end - length;
1038 p->mmap_end = start;
1039 } else {
1040 start = p->mmap_end;
1041 p->mmap_end += length;
1042 }
1043 p->pTable->allocate(start, length);
1044
1045 return start;
1046}
1047
1048/// Target getrlimit() handler.
1049template <class OS>
1050SyscallReturn
1051getrlimitFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
1052 ThreadContext *tc)

--- 187 unchanged lines hidden ---