Changeset 63e27ef in mainline for kernel/generic/src/main
- Timestamp:
- 2017-06-19T21:47:42Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- Location:
- kernel/generic/src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r7354b5e r63e27ef 42 42 */ 43 43 44 #include <assert.h> 44 45 #include <main/kinit.h> 45 46 #include <config.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, -
kernel/generic/src/main/main.c
r7354b5e r63e27ef 48 48 49 49 #include <arch/asm.h> 50 #include <debug.h> 50 51 #include <context.h> 51 52 #include <print.h> 52 53 #include <panic.h> 53 #include < debug.h>54 #include <assert.h> 54 55 #include <config.h> 55 56 #include <time/clock.h> … … 98 99 */ 99 100 #define CHECK_INT_TYPE_(signness, size) \ 100 STATIC_ASSERT_VERBOSE(sizeof(signness##size##_t) * 8 == size, \101 static_assert(sizeof(signness##size##_t) * 8 == size, \ 101 102 #signness #size "_t does not have " #size " bits"); 102 103
Note:
See TracChangeset
for help on using the changeset viewer.
