Ignore:
Timestamp:
2006-11-17T20:21:25Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f18cc64
Parents:
282f2c9c
Message:

sparc64 code to support physical memory that starts on non-zero addresses.
Still needs to be tested on systems with such setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/mm/page.h

    r282f2c9c rf2ea5d8  
    4949#include <genarch/mm/page_ht.h>
    5050
    51 #define KA2PA(x)        ((uintptr_t) (x))
    52 #define PA2KA(x)        ((uintptr_t) (x))
     51extern uintptr_t physmem_base;
     52
     53#define KA2PA(x)        (((uintptr_t) (x)) + physmem_base)
     54#define PA2KA(x)        (((uintptr_t) (x)) - physmem_base)
    5355
    5456union page_address {
Note: See TracChangeset for help on using the changeset viewer.