Changeset 4f1475d4 in mainline for arch/amd64/include/mm/page.h


Ignore:
Timestamp:
2005-09-04T19:43:15Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9e5422
Parents:
ee7e6ace
Message:

Added preprocessed linker script to AMD architecture, so that
the constants are all only in the header files.

File:
1 edited

Legend:

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

    ree7e6ace r4f1475d4  
    3939
    4040#ifndef __ASM__
    41 # define KA2PA(x)      (((__address) (x)) + 0x80000000)
    42 # define PA2KA(x)      (((__address) (x)) - 0x80000000)
     41# define KA2PA(x)      (((__address) (x)) - 0xffffffff80000000)
     42# define PA2KA(x)      (((__address) (x)) + 0xffffffff80000000)
    4343#else
    44 # define KA2PA(x)      ((x) + 0x80000000)
    45 # define PA2KA(x)      ((x) - 0x80000000)
     44# define KA2PA(x)      ((x) - 0xffffffff80000000)
     45# define PA2KA(x)      ((x) + 0xffffffff80000000)
    4646#endif
    4747
Note: See TracChangeset for help on using the changeset viewer.