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:
@@ -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); \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user