Changeset ae318d3 in mainline for kernel/generic/include


Ignore:
Timestamp:
2009-02-16T18:50:48Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06da55b
Parents:
17f168e
Message:

overhaul pareas: use one single physical area for the physical address space not belonging to physical memory

Location:
kernel/generic/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ddi/ddi.h

    r17f168e rae318d3  
    3939#include <arch/types.h>
    4040#include <proc/task.h>
     41#include <adt/list.h>
    4142
    4243/** Structure representing contiguous physical memory area. */
    4344typedef struct {
    44         uintptr_t pbase;        /**< Physical base of the area. */
    45         uintptr_t vbase;        /**< Virtual base of the area. */
    46         count_t frames;         /**< Number of frames in the area. */
    47         bool cacheable;         /**< Cacheability. */
     45        uintptr_t pbase;    /**< Physical base of the area. */
     46        pfn_t frames;       /**< Number of frames in the area. */
     47       
     48        link_t link;        /**< Linked list link */
    4849} parea_t;
    4950
  • kernel/generic/include/mm/page.h

    r17f168e rae318d3  
    4343typedef struct {
    4444        void (* mapping_insert)(as_t *as, uintptr_t page, uintptr_t frame,
    45                 int flags);
     45            int flags);
    4646        void (* mapping_remove)(as_t *as, uintptr_t page);
    4747        pte_t *(* mapping_find)(as_t *as, uintptr_t page);
     
    6060extern void page_table_destroy(pte_t *page_table);
    6161extern void map_structure(uintptr_t s, size_t size);
     62
    6263extern uintptr_t hw_map(uintptr_t physaddr, size_t size);
     64extern void hw_area(uintptr_t *physaddr, pfn_t *frames);
    6365
    6466#endif
Note: See TracChangeset for help on using the changeset viewer.