Changes in kernel/generic/src/main/kinit.c [36df4109:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r36df4109 r63e27ef 42 42 */ 43 43 44 #include <assert.h> 44 45 #include <main/kinit.h> 45 46 #include <config.h> … … 60 61 #include <print.h> 61 62 #include <log.h> 62 #include <mem str.h>63 #include <mem.h> 63 64 #include <console/console.h> 64 65 #include <interrupt.h> 65 66 #include <console/kconsole.h> 66 #include <security/ cap.h>67 #include <security/perm.h> 67 68 #include <lib/rd.h> 68 69 #include <ipc/ipc.h> 69 #include <debug.h>70 70 #include <str.h> 71 71 #include <sysinfo/stats.h> … … 240 240 name = "<unknown>"; 241 241 242 STATIC_ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);242 static_assert(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN, ""); 243 243 str_cpy(namebuf, TASK_NAME_BUFLEN, INIT_PREFIX); 244 244 str_cpy(namebuf + INIT_PREFIX_LEN, … … 251 251 init.tasks[i].size, 252 252 PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE); 253 ASSERT(page);253 assert(page); 254 254 255 255 int rc = program_create_from_image((void *) page, namebuf, … … 259 259 if (programs[i].task != NULL) { 260 260 /* 261 * Set capabilities to init userspace tasks.261 * Set permissions to init userspace tasks. 262 262 */ 263 cap_set(programs[i].task, CAP_CAP | CAP_MEM_MANAGER | 264 CAP_IO_MANAGER | CAP_IRQ_REG); 263 perm_set(programs[i].task, 264 PERM_PERM | PERM_MEM_MANAGER | 265 PERM_IO_MANAGER | PERM_IRQ_REG); 265 266 266 267 if (!ipc_phone_0) {
Note:
See TracChangeset
for help on using the changeset viewer.