Allow servers to run with fewer privileges:

- allow non-root processes to get their own endpoint
- make alloc_contig() call sys_umap() only when requested
This commit is contained in:
David van Moolenbroek
2009-12-02 10:06:58 +00:00
parent 30a7fe5fa9
commit f197bcb435
5 changed files with 11 additions and 7 deletions

View File

@@ -162,8 +162,7 @@ struct memory {
#define STATICINIT(v, n) \
if(!(v)) { \
phys_bytes myph; \
if(!((v) = alloc_contig(sizeof(*(v)) * (n), 0, &myph))) { \
if(!((v) = alloc_contig(sizeof(*(v)) * (n), 0, NULL))) { \
panic(__FILE__, "allocating " #v " failed", n); \
} \
}