Ignore:
Timestamp:
2018-05-13T15:19:32Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad896eb
Parents:
13db2044
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
Message:

Use standard signature for malloc() in kernel.

The remaining instances of blocking allocation are replaced with
a new separate function named nfmalloc (short for non-failing malloc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/s3c24xx/uart.c

    r13db2044 r11b285d  
    102102outdev_t *s3c24xx_uart_init(uintptr_t paddr, inr_t inr)
    103103{
    104         outdev_t *uart_dev = malloc(sizeof(outdev_t), FRAME_ATOMIC);
     104        outdev_t *uart_dev = malloc(sizeof(outdev_t));
    105105        if (!uart_dev)
    106106                return NULL;
    107107
    108108        s3c24xx_uart_t *uart =
    109             malloc(sizeof(s3c24xx_uart_t), FRAME_ATOMIC);
     109            malloc(sizeof(s3c24xx_uart_t));
    110110        if (!uart) {
    111111                free(uart_dev);
Note: See TracChangeset for help on using the changeset viewer.