summaryrefslogtreecommitdiff
path: root/kernel/defs.h
diff options
context:
space:
mode:
Experiment with being more precise setting permissions for user pages.
Growing adds R|W pages (without X). Exec() marks the stack only R|W. Probably could setup permissions for text and data better if we call ld with --no-omagic instead of -N.
Diffstat (limited to 'kernel/defs.h')
-rw-r--r--kernel/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/defs.h b/kernel/defs.h
index 62b9292..5cf2de2 100644
--- a/kernel/defs.h
+++ b/kernel/defs.h
@@ -160,7 +160,7 @@ void kvmmap(pagetable_t, uint64, uint64, uint64, int);
int mappages(pagetable_t, uint64, uint64, uint64, int);
pagetable_t uvmcreate(void);
void uvmfirst(pagetable_t, uchar *, uint);
-uint64 uvmalloc(pagetable_t, uint64, uint64);
+uint64 uvmalloc(pagetable_t, uint64, uint64, int);
uint64 uvmdealloc(pagetable_t, uint64, uint64);
int uvmcopy(pagetable_t, pagetable_t, uint64);
void uvmfree(pagetable_t, uint64);