mmap.c (53a5960aadd542dd27b8705ac30df154557d5ffc) | mmap.c (e6e5906b6e0a81718066ca43aef57515026c6624) |
---|---|
1/* 2 * mmap support for qemu 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 195 unchanged lines hidden (view full) --- 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 */ 207 if (real_start == 0) { 208 real_start = last_start; 209 last_start += HOST_PAGE_ALIGN(len); 210 } 211#endif | 1/* 2 * mmap support for qemu 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 195 unchanged lines hidden (view full) --- 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 */ 207 if (real_start == 0) { 208 real_start = last_start; 209 last_start += HOST_PAGE_ALIGN(len); 210 } 211#endif |
212 if (qemu_host_page_size != qemu_real_host_page_size) { | 212 if (0 && qemu_host_page_size != qemu_real_host_page_size) { |
213 /* NOTE: this code is only for debugging with '-p' option */ 214 /* ??? Can also occur when TARGET_PAGE_SIZE > host page size. */ 215 /* reserve a memory area */ 216 /* ??? This needs fixing for remapping. */ 217abort(); 218 host_len = HOST_PAGE_ALIGN(len) + qemu_host_page_size - TARGET_PAGE_SIZE; 219 real_start = (long)mmap(g2h(real_start), host_len, PROT_NONE, 220 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); --- 197 unchanged lines hidden --- | 213 /* NOTE: this code is only for debugging with '-p' option */ 214 /* ??? Can also occur when TARGET_PAGE_SIZE > host page size. */ 215 /* reserve a memory area */ 216 /* ??? This needs fixing for remapping. */ 217abort(); 218 host_len = HOST_PAGE_ALIGN(len) + qemu_host_page_size - TARGET_PAGE_SIZE; 219 real_start = (long)mmap(g2h(real_start), host_len, PROT_NONE, 220 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); --- 197 unchanged lines hidden --- |