Changeset 7473807 in mainline for kernel/generic/src/console
- Timestamp:
- 2018-05-11T20:22:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c5159
- Parents:
- ae89656
- Location:
- kernel/generic/src/console
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
rae89656 r7473807 1465 1465 return true; 1466 1466 1467 uint64_t *data = (uint64_t *) malloc(sizeof(uint64_t) * cnt, 0); 1467 uint64_t *data = (uint64_t *) malloc(sizeof(uint64_t) * cnt, 1468 FRAME_ATOMIC); 1468 1469 if (data == NULL) { 1469 1470 printf("Error allocating memory for statistics\n"); -
kernel/generic/src/console/console.c
rae89656 r7473807 411 411 412 412 if (size > 0) { 413 data = (char *) malloc(size + 1, 0);413 data = (char *) malloc(size + 1, FRAME_ATOMIC); 414 414 if (!data) 415 415 return (sys_errno_t) ENOMEM; -
kernel/generic/src/console/kconsole.c
rae89656 r7473807 298 298 end++; 299 299 300 tmp = malloc(STR_BOUNDS(end - start + 1), 0); 300 tmp = malloc(STR_BOUNDS(end - start + 1), FRAME_ATOMIC); 301 if (!tmp) 302 return NULL; 301 303 302 304 wstr_to_str(tmp, end - start + 1, &cmdline[start]);
Note:
See TracChangeset
for help on using the changeset viewer.