Changeset 95c675b in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/src/main/kinit.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
rdbf32b1 r95c675b 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.
