Changeset cd3b380 in mainline for kernel/arch/ia64/src/mm/vhpt.c


Ignore:
Timestamp:
2013-09-11T11:56:39Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1db5669
Parents:
43dd8028
Message:

due to the removal of FRAME_KA, the return value of frame_alloc*() needs to be checked before converting the physical address to kernel address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/mm/vhpt.c

    r43dd8028 rcd3b380  
    4242uintptr_t vhpt_set_up(void)
    4343{
    44         vhpt_base = (vhpt_entry_t *)
    45             PA2KA(frame_alloc(SIZE2FRAMES(VHPT_SIZE), FRAME_ATOMIC, 0));
    46         if (!vhpt_base)
     44        uintptr_t vhpt_frame =
     45            frame_alloc(SIZE2FRAMES(VHPT_SIZE), FRAME_ATOMIC, 0);
     46        if (!vhpt_frame)
    4747                panic("Kernel configured with VHPT but no memory for table.");
    4848       
     49        vhpt_base = (vhpt_entry_t *) PA2KA(vhpt_frame);
    4950        vhpt_invalidate_all();
    5051        return (uintptr_t) vhpt_base;
Note: See TracChangeset for help on using the changeset viewer.