Changeset 315 for trunk/hal/generic


Ignore:
Timestamp:
Aug 3, 2017, 10:15:18 AM (7 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.

Location:
trunk/hal/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_gpt.h

    r313 r315  
    6969typedef struct gpt_s
    7070{
    71         void           * ptr;    /*! pointer on GPT root (must be page aligned)            */
     71        void           * ptr;    /*! local pointer on GPT root                             */
    7272        ppn_t            ppn;    /*! PPN of GPT root                                       */
    73         struct page_s  * page;   /*! pointer on page descriptor for GPT root               */
     73        struct page_s  * page;   /*! local pointer on GPT root page descriptor             */
    7474}
    7575gpt_t;
  • trunk/hal/generic/hal_ppm.h

    r313 r315  
    6262void hal_core_init( boot_info_t * info );
    6363
    64 /*****************************************************************************************
    65  * This function returns the PPN from the page descriptor extended pointer.
    66  *****************************************************************************************
    67  * @ page_xp   : pointer to page descriptor
    68  * @ returns physical page number
    69  ****************************************************************************************/
    70 inline ppn_t hal_page2ppn( xptr_t page_xp );
    71 
    72 /*****************************************************************************************
    73  * This function returns the page descriptor extended pointer from the PPN.
    74  *****************************************************************************************
    75  * @ ppn          : physical page number
    76  * @ returns extended pointer on page descriptor
    77  ****************************************************************************************/
    78 inline xptr_t hal_ppn2page( ppn_t ppn );
    79 
    8064#endif  /* HAL_PPM_H_ */
Note: See TracChangeset for help on using the changeset viewer.