Added MAP_GROWSDOWN feature to do_mmap. Fixed sys_mmap return.

This commit is contained in:
Bahadir Balban
2008-09-10 12:43:49 +03:00
parent 7b9e02d04b
commit fc51512438
4 changed files with 24 additions and 10 deletions

View File

@@ -19,6 +19,7 @@
#define MAP_FIXED 0x10
#define MAP_SHARED 0x01
#define MAP_PRIVATE 0x02
#define MAP_GROWSDOWN 0x00100
struct vm_area *vma_new(unsigned long pfn_start, unsigned long npages,
unsigned int flags, unsigned long file_offset);

View File

@@ -36,8 +36,11 @@
#define VMA_PRIVATE (1 << 6)
/* For wired pages */
#define VMA_FIXED (1 << 7)
/* For stack, where mmap returns end address */
#define VMA_GROWSDOWN (1 << 8)
/* Set when the page is dirty in cache but not written to disk */
#define VM_DIRTY (1 << 8)
#define VM_DIRTY (1 << 9)
/* Defines the type of file. A device file? Regular file? One used at boot? */
enum VM_FILE_TYPE {