X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Fasm-sparc64%2Fmman.h;h=625be4d61baf8d7622e1dd5ce195260fdc6beb1e;hb=754cdd4aba225b74dcc35cc384aeb0c42b505e8b;hp=6fd878e614350d6ad5212b3795d1655f7077aaa6;hpb=5f6164f3092832e0d9b12eed52e09a76bf39c64a;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/asm-sparc64/mman.h b/include/asm-sparc64/mman.h index 6fd878e..625be4d 100644 --- a/include/asm-sparc64/mman.h +++ b/include/asm-sparc64/mman.h @@ -22,17 +22,11 @@ #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ #define MAP_NONBLOCK 0x10000 /* do not block on IO */ -/* XXX Need to add flags to SunOS's mctl, mlockall, and madvise system - * XXX calls. - */ - -/* SunOS sys_mctl() stuff... */ -#define MC_SYNC 1 /* Sync pages in memory with storage (usu. a file) */ -#define MC_LOCK 2 /* Lock pages into core ram, do not allow swapping of them */ -#define MC_UNLOCK 3 /* Unlock pages locked via previous mctl() with MC_LOCK arg */ -#define MC_LOCKAS 5 /* Lock an entire address space of the calling process */ -#define MC_UNLOCKAS 6 /* Unlock entire address space of calling process */ - -#define MADV_FREE 0x5 /* (Solaris) contents can be freed */ +#ifdef __KERNEL__ +#ifndef __ASSEMBLY__ +#define arch_mmap_check(addr,len,flags) sparc64_mmap_check(addr,len) +int sparc64_mmap_check(unsigned long addr, unsigned long len); +#endif +#endif #endif /* __SPARC64_MMAN_H__ */