diff options
Diffstat (limited to 'arch/sh/include/asm/addrspace.h')
| -rw-r--r-- | arch/sh/include/asm/addrspace.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/sh/include/asm/addrspace.h b/arch/sh/include/asm/addrspace.h index 80d40813e057..99d6b3ecbe22 100644 --- a/arch/sh/include/asm/addrspace.h +++ b/arch/sh/include/asm/addrspace.h | |||
| @@ -28,9 +28,6 @@ | |||
| 28 | /* Returns the privileged segment base of a given address */ | 28 | /* Returns the privileged segment base of a given address */ |
| 29 | #define PXSEG(a) (((unsigned long)(a)) & 0xe0000000) | 29 | #define PXSEG(a) (((unsigned long)(a)) & 0xe0000000) |
| 30 | 30 | ||
| 31 | /* Returns the physical address of a PnSEG (n=1,2) address */ | ||
| 32 | #define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff) | ||
| 33 | |||
| 34 | #if defined(CONFIG_29BIT) || defined(CONFIG_PMB_FIXED) | 31 | #if defined(CONFIG_29BIT) || defined(CONFIG_PMB_FIXED) |
| 35 | /* | 32 | /* |
| 36 | * Map an address to a certain privileged segment | 33 | * Map an address to a certain privileged segment |
| @@ -60,5 +57,11 @@ | |||
| 60 | #define P3_ADDR_MAX P4SEG | 57 | #define P3_ADDR_MAX P4SEG |
| 61 | #endif | 58 | #endif |
| 62 | 59 | ||
| 60 | #ifndef __ASSEMBLY__ | ||
| 61 | #ifdef CONFIG_PMB | ||
| 62 | extern int __in_29bit_mode(void); | ||
| 63 | #endif /* CONFIG_PMB */ | ||
| 64 | #endif /* __ASSEMBLY__ */ | ||
| 65 | |||
| 63 | #endif /* __KERNEL__ */ | 66 | #endif /* __KERNEL__ */ |
| 64 | #endif /* __ASM_SH_ADDRSPACE_H */ | 67 | #endif /* __ASM_SH_ADDRSPACE_H */ |
