Changeset 315 for trunk/kernel/mm/khm.c


Ignore:
Timestamp:
Aug 3, 2017, 10:15:18 AM (5 years ago)
Author:
alain
Message:

Redefine the fuctions ppm_base2page() / ppm_page2base() / ppm_page2ppn() / ppm_ppn2page() / ppm_base2ppn() / ppm_ppn2base(),
to use explicitely extended pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/khm.c

    r175 r315  
    5151        // get kernel heap base from PPM
    5252        page_t * page      = ppm_alloc_pages( CONFIG_PPM_HEAP_ORDER );
    53         void   * heap_base = ppm_page2vaddr( page );
     53        xptr_t   base_xp   = ppm_page2base( XPTR( local_cxy, page ) );
     54        void   * heap_base = GET_PTR( base_xp );
    5455
    5556        // initialize first block (complete heap)
Note: See TracChangeset for help on using the changeset viewer.