Changeset 11b285d in mainline for kernel/genarch/src/fb/fb.c


Ignore:
Timestamp:
2018-05-13T15:19:32Z (6 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/fb/fb.c

    r13db2044 r11b285d  
    571571        }
    572572
    573         outdev_t *fbdev = malloc(sizeof(outdev_t), FRAME_ATOMIC);
     573        outdev_t *fbdev = malloc(sizeof(outdev_t));
    574574        if (!fbdev)
    575575                return NULL;
    576576
    577         fb_instance_t *instance = malloc(sizeof(fb_instance_t), FRAME_ATOMIC);
     577        fb_instance_t *instance = malloc(sizeof(fb_instance_t));
    578578        if (!instance) {
    579579                free(fbdev);
     
    618618        }
    619619
    620         instance->backbuf = (uint16_t *) malloc(bbsize, FRAME_ATOMIC);
     620        instance->backbuf = (uint16_t *) malloc(bbsize);
    621621        if (!instance->backbuf) {
    622622                LOG("Unable to allocate backbuffer.");
     
    626626        }
    627627
    628         instance->glyphs = (uint8_t *) malloc(glyphsize, FRAME_ATOMIC);
     628        instance->glyphs = (uint8_t *) malloc(glyphsize);
    629629        if (!instance->glyphs) {
    630630                LOG("Unable to allocate glyphs.");
     
    635635        }
    636636
    637         instance->bgscan = malloc(instance->bgscanbytes, FRAME_ATOMIC);
     637        instance->bgscan = malloc(instance->bgscanbytes);
    638638        if (!instance->bgscan) {
    639639                LOG("Unable to allocate background pixel.");
Note: See TracChangeset for help on using the changeset viewer.