Changeset 11b285d in mainline for kernel/arch/ia32


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).

Location:
kernel/arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/pm.c

    r13db2044 r11b285d  
    283283                tss_p = &tss0;
    284284        } else {
    285                 tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC);
     285                tss_p = (tss_t *) malloc(sizeof(tss_t));
    286286                if (!tss_p)
    287287                        panic("Cannot allocate TSS.");
  • kernel/arch/ia32/src/smp/smp.c

    r13db2044 r11b285d  
    161161                 */
    162162                descriptor_t *gdt_new =
    163                     (descriptor_t *) malloc(GDT_ITEMS * sizeof(descriptor_t),
    164                     FRAME_ATOMIC);
     163                    (descriptor_t *) malloc(GDT_ITEMS * sizeof(descriptor_t));
    165164                if (!gdt_new)
    166165                        panic("Cannot allocate memory for GDT.");
Note: See TracChangeset for help on using the changeset viewer.