pgtable.h (8e6d08e0a15e7d4d4b608b56597350d4cdd77710) pgtable.h (4ee93d80ad73980826d582c7c37caa9597822001)
1/*
2 * OpenRISC Linux
3 *
4 * Linux architectural port borrowing liberally from similar works of
5 * others. All original copyrights apply as per the original source
6 * declaration.
7 *
8 * OpenRISC implementation:

--- 402 unchanged lines hidden (view full) ---

411#define pgd_ERROR(e) \
412 printk(KERN_ERR "%s:%d: bad pgd %p(%08lx).\n", \
413 __FILE__, __LINE__, &(e), pgd_val(e))
414
415extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */
416
417struct vm_area_struct;
418
1/*
2 * OpenRISC Linux
3 *
4 * Linux architectural port borrowing liberally from similar works of
5 * others. All original copyrights apply as per the original source
6 * declaration.
7 *
8 * OpenRISC implementation:

--- 402 unchanged lines hidden (view full) ---

411#define pgd_ERROR(e) \
412 printk(KERN_ERR "%s:%d: bad pgd %p(%08lx).\n", \
413 __FILE__, __LINE__, &(e), pgd_val(e))
414
415extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */
416
417struct vm_area_struct;
418
419/*
420 * or32 doesn't have any external MMU info: the kernel page
421 * tables contain all the necessary information.
422 *
423 * Actually I am not sure on what this could be used for.
424 */
419static inline void update_tlb(struct vm_area_struct *vma,
420 unsigned long address, pte_t *pte)
421{
422}
423
424extern void update_cache(struct vm_area_struct *vma,
425 unsigned long address, pte_t *pte);
426
425static inline void update_mmu_cache(struct vm_area_struct *vma,
426 unsigned long address, pte_t *pte)
427{
427static inline void update_mmu_cache(struct vm_area_struct *vma,
428 unsigned long address, pte_t *pte)
429{
430 update_tlb(vma, address, pte);
431 update_cache(vma, address, pte);
428}
429
430/* __PHX__ FIXME, SWAP, this probably doesn't work */
431
432/* Encode and de-code a swap entry (must be !pte_none(e) && !pte_present(e)) */
433/* Since the PAGE_PRESENT bit is bit 4, we can use the bits above */
434
435#define __swp_type(x) (((x).val >> 5) & 0x7f)

--- 19 unchanged lines hidden ---
432}
433
434/* __PHX__ FIXME, SWAP, this probably doesn't work */
435
436/* Encode and de-code a swap entry (must be !pte_none(e) && !pte_present(e)) */
437/* Since the PAGE_PRESENT bit is bit 4, we can use the bits above */
438
439#define __swp_type(x) (((x).val >> 5) & 0x7f)

--- 19 unchanged lines hidden ---