summaryrefslogtreecommitdiff
path: root/kernel/defs.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2022-08-12 13:22:10 -0400
committerFrans Kaashoek <[email protected]>2022-08-12 13:22:10 -0400
commit899cc02660232092209a5db57b326ab7b49813dd (patch)
treeabde95c343fb06294fba1c30036a3d6564602693 /kernel/defs.h
parent8f58cc7df99e9f697ca3843886802ecab5cb8991 (diff)
downloadxv6-labs-899cc02660232092209a5db57b326ab7b49813dd.tar.gz
xv6-labs-899cc02660232092209a5db57b326ab7b49813dd.tar.bz2
xv6-labs-899cc02660232092209a5db57b326ab7b49813dd.zip
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);