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


Ignore:
Timestamp:
2005-09-06T08:51:22Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e949fd6
Parents:
39ae77b
Message:

Fixed mips boot process.
On interrupt saving registers, save $lo, $hi.
Add interrupt naming to asm files (mips).
Save only necessary registers on context switch (see mips ABI).
Fixed copyright info.

File:
1 edited

Legend:

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

    r39ae77b re84439a  
    3030#define __mips_PAGE_H__
    3131
    32 #include <arch/mm/tlb.h>
    33 #include <mm/page.h>
    34 #include <arch/mm/frame.h>
    35 #include <arch/types.h>
    36 
    3732#define PAGE_SIZE       FRAME_SIZE
    3833
    39 #define KA2PA(x)        (((__address) (x)) - 0x80000000)
    40 #define PA2KA(x)        (((__address) (x)) + 0x80000000)
     34#ifndef __ASM__
     35#  define KA2PA(x)      (((__address) (x)) - 0x80000000)
     36#  define PA2KA(x)      (((__address) (x)) + 0x80000000)
     37#else
     38#  define KA2PA(x)      ((x) - 0x80000000)
     39#  define PA2KA(x)      ((x) + 0x80000000)
     40#endif
    4141
    4242/*
     
    8282#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)        set_pt_flags((pte_t *)(ptl3), (index_t)(i), (x))
    8383
     84#ifndef __ASM__
     85
     86#include <arch/mm/tlb.h>
     87#include <mm/page.h>
     88#include <arch/mm/frame.h>
     89#include <arch/types.h>
     90
    8491static inline int get_pt_flags(pte_t *pt, index_t i)
    8592{
     
    110117extern pte_t *PTL0;
    111118
     119#endif /* __ASM__ */
     120
    112121#endif
Note: See TracChangeset for help on using the changeset viewer.