Changeset 8f2153b in mainline for arch/ia32/include/mm/page.h


Ignore:
Timestamp:
2005-09-05T12:41:45Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b492b5
Parents:
2c55af3
Message:

Backported AMD64 linker and boot changes back to IA32.

File:
1 edited

Legend:

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

    r2c55af3 r8f2153b  
    3030#define __ia32_PAGE_H__
    3131
    32 #include <mm/page.h>
    33 #include <arch/types.h>
    34 #include <arch/mm/frame.h>
    35 #include <typedefs.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/*
     
    7070#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
    7171#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)        set_pt_flags((pte_t *)(ptl3), (index_t)(i), (x))
     72
     73#ifndef __ASM__
     74
     75#include <mm/page.h>
     76#include <arch/types.h>
     77#include <arch/mm/frame.h>
     78#include <typedefs.h>
    7279
    7380struct page_specifier {
     
    112119extern void page_arch_init(void);
    113120
     121#endif /* __ASM__ */
     122
    114123#endif
Note: See TracChangeset for help on using the changeset viewer.