Go to the documentation of this file.
5 #ifndef __ASM_SN_MAPPED_KERNEL_H
6 #define __ASM_SN_MAPPED_KERNEL_H
25 #include <asm/addrspace.h>
27 #define REP_BASE CAC_BASE
29 #ifdef CONFIG_MAPPED_KERNEL
31 #define MAPPED_ADDR_RO_TO_PHYS(x) (x - REP_BASE)
32 #define MAPPED_ADDR_RW_TO_PHYS(x) (x - REP_BASE - 16777216)
34 #define MAPPED_KERN_RO_PHYSBASE(n) (hub_data(n)->kern_vars.kv_ro_baseaddr)
35 #define MAPPED_KERN_RW_PHYSBASE(n) (hub_data(n)->kern_vars.kv_rw_baseaddr)
37 #define MAPPED_KERN_RO_TO_PHYS(x) \
38 ((unsigned long)MAPPED_ADDR_RO_TO_PHYS(x) | \
39 MAPPED_KERN_RO_PHYSBASE(get_compact_nodeid()))
40 #define MAPPED_KERN_RW_TO_PHYS(x) \
41 ((unsigned long)MAPPED_ADDR_RW_TO_PHYS(x) | \
42 MAPPED_KERN_RW_PHYSBASE(get_compact_nodeid()))
46 #define MAPPED_KERN_RO_TO_PHYS(x) (x - REP_BASE)
47 #define MAPPED_KERN_RW_TO_PHYS(x) (x - REP_BASE)
51 #define MAPPED_KERN_RO_TO_K0(x) PHYS_TO_K0(MAPPED_KERN_RO_TO_PHYS(x))
52 #define MAPPED_KERN_RW_TO_K0(x) PHYS_TO_K0(MAPPED_KERN_RW_TO_PHYS(x))