target/ppc: Return default CPU for max CPU
[qemu.git] / linux-user / user-mmap.h
blob480ce1c11487b74d8b2b409fb0653f18b36e2d3b
1 /*
2 * user-mmap.h: prototypes for linux-user guest binary loader
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef LINUX_USER_USER_MMAP_H
19 #define LINUX_USER_USER_MMAP_H
21 int target_mprotect(abi_ulong start, abi_ulong len, int prot);
22 abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
23 int flags, int fd, abi_ulong offset);
24 int target_munmap(abi_ulong start, abi_ulong len);
25 abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size,
26 abi_ulong new_size, unsigned long flags,
27 abi_ulong new_addr);
28 abi_long target_madvise(abi_ulong start, abi_ulong len_in, int advice);
29 extern unsigned long last_brk;
30 extern abi_ulong mmap_next_start;
31 abi_ulong mmap_find_vma(abi_ulong, abi_ulong, abi_ulong);
32 void mmap_fork_start(void);
33 void mmap_fork_end(int child);
35 #endif /* LINUX_USER_USER_MMAP_H */