~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to linux-user/mmap.c

Tags: upstream-0.9.0+20070816
ImportĀ upstreamĀ versionĀ 0.9.0+20070816

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
    target_ulong ret, end, real_start, real_end, retaddr, host_offset, host_len;
158
158
    long host_start;
159
159
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \
160
 
    defined(__ia64)
 
160
        defined(__ia64) || defined(__mips__)
161
161
    static target_ulong last_start = 0x40000000;
162
162
#elif defined(__CYGWIN__)
163
163
    /* Cygwin doesn't have a whole lot of address space.  */
202
202
 
203
203
    if (!(flags & MAP_FIXED)) {
204
204
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) || \
205
 
    defined(__ia64) || defined(__CYGWIN__)
206
 
        /* tell the kenel to search at the same place as i386 */
 
205
    defined(__ia64) || defined(__mips__) || defined(__CYGWIN__)
 
206
        /* tell the kernel to search at the same place as i386 */
207
207
        if (real_start == 0) {
208
208
            real_start = last_start;
209
209
            last_start += HOST_PAGE_ALIGN(len);