Changeset ff9f858 in mainline for arch/mips/include/mm/page.h


Ignore:
Timestamp:
2005-06-30T23:27:02Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a03f9
Parents:
992bbb97
Message:

Generic 4-level page tables interface & implementation (review & test).
Implement more architecture dependant macros on IA-32.
Provide fake implementation on IA-64 and MIPS.
Convert map_page_to_frame() to use the new interface.
Move adjusted map_page_to_frame() from IA-32's arch/mm/page.c to the generic mm/page.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/include/mm/page.h

    r992bbb97 rff9f858  
    3131
    3232#include <arch/mm/frame.h>
     33#include <arch/types.h>
    3334
    3435#define PAGE_SIZE       FRAME_SIZE
     
    3940#define page_arch_init()        ;
    4041
     42/*
     43 * Implementation of generic 4-level page table interface.
     44 * TODO: this is a fake implementation provided to satisfy the compiler
     45 */
     46#define PTL0_INDEX_ARCH(vaddr)  0
     47#define PTL1_INDEX_ARCH(vaddr)  0
     48#define PTL2_INDEX_ARCH(vaddr)  0
     49#define PTL3_INDEX_ARCH(vaddr)  0
     50
     51#define GET_PTL0_ADDRESS_ARCH()                 ((pte_t *) 0)
     52#define GET_PTL1_ADDRESS_ARCH(ptl0, i)          ((pte_t *) 0)
     53#define GET_PTL2_ADDRESS_ARCH(ptl1, i)          ((pte_t *) 0)
     54#define GET_PTL3_ADDRESS_ARCH(ptl2, i)          ((pte_t *) 0)
     55#define GET_FRAME_ADDRESS_ARCH(ptl3, i)         ((pte_t *) 0)
     56
     57#define SET_PTL0_ADDRESS_ARCH(ptl0)
     58#define SET_PTL1_ADDRESS_ARCH(ptl0, i, a)
     59#define SET_PTL2_ADDRESS_ARCH(ptl1, i, a)
     60#define SET_PTL3_ADDRESS_ARCH(ptl2, i, a)
     61#define SET_FRAME_ADDRESS_ARCH(ptl3, i, a)
     62
     63#define GET_PTL1_FLAGS_ARCH(ptl0, i)            0
     64#define GET_PTL2_FLAGS_ARCH(ptl1, i)            0
     65#define GET_PTL3_FLAGS_ARCH(ptl2, i)            0
     66#define GET_FRAME_FLAGS_ARCH(ptl3, i)           0
     67
     68#define SET_PTL1_FLAGS_ARCH(ptl0, i, x)
     69#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
     70#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
     71#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)
     72
     73typedef __u32 pte_t;
     74
    4175#endif
Note: See TracChangeset for help on using the changeset viewer.