Changeset 8fc0d455 in mainline for arch/amd64/include/mm/page.h


Ignore:
Timestamp:
2005-08-30T17:50:07Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c0a9b3
Parents:
b45aa23
Message:

Code cleanup.

File:
1 edited

Legend:

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

    rb45aa23 r8fc0d455  
    3030#define __amd64_PAGE_H__
    3131
    32 #include <mm/page.h>
    33 #include <arch/mm/frame.h>
    34 #include <arch/types.h>
    35 #include <arch/mm/ptl.h>
     32#ifndef __ASM__
     33#  include <mm/page.h>
     34#  include <arch/mm/frame.h>
     35#  include <arch/types.h>
     36#endif
    3637
    3738#define PAGE_SIZE       FRAME_SIZE
     39
     40#ifndef __ASM__
     41# define KA2PA(x)       (((__address) (x)) + 0x80000000)
     42# define PA2KA(x)       (((__address) (x)) - 0x80000000)
     43#else
     44# define KA2PA(x)       ((x) + 0x80000000)
     45# define PA2KA(x)       ((x)) - 0x80000000)
     46#endif
    3847
    3948#define PTL0_INDEX_ARCH(vaddr)          0
     
    6574#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)
    6675
     76#ifndef __ASM__
    6777extern void page_arch_init(void);
    6878
    69 typedef __u32 pte_t;
     79typedef __u64 pte_t;
     80#endif
    7081
    7182#endif
Note: See TracChangeset for help on using the changeset viewer.