Changeset 482f968 in mainline for kernel/arch/arm32/src/ras.c


Ignore:
Timestamp:
2018-10-31T16:48:51Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
91a8f83, bab75df6
Parents:
37781819
Message:

Make FRAME_HIGHMEM fall back to low memory on failure.

Which is what existing users of it are doing, and there is no reason
not to as far as I can see.

Also make sure calls to frame_alloc all have either FRAME_LOWMEM or
FRAME_HIGHMEM explicitly set, as appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/ras.c

    r37781819 r482f968  
    5151void ras_init(void)
    5252{
    53         uintptr_t frame =
    54             frame_alloc(1, FRAME_ATOMIC | FRAME_HIGHMEM, 0);
    55         if (!frame)
    56                 frame = frame_alloc(1, FRAME_LOWMEM, 0);
     53        uintptr_t frame = frame_alloc(1, FRAME_HIGHMEM, 0);
    5754
    5855        ras_page = (uintptr_t *) km_map(frame, PAGE_SIZE, PAGE_SIZE,
Note: See TracChangeset for help on using the changeset viewer.