diff options
Diffstat (limited to 'include/asm-sh/addrspace.h')
-rw-r--r-- | include/asm-sh/addrspace.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-sh/addrspace.h b/include/asm-sh/addrspace.h index e7f2deb28e06..fa544fc38c23 100644 --- a/include/asm-sh/addrspace.h +++ b/include/asm-sh/addrspace.h | |||
@@ -31,6 +31,7 @@ | |||
31 | /* Returns the physical address of a PnSEG (n=1,2) address */ | 31 | /* Returns the physical address of a PnSEG (n=1,2) address */ |
32 | #define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff) | 32 | #define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff) |
33 | 33 | ||
34 | #ifdef CONFIG_29BIT | ||
34 | /* | 35 | /* |
35 | * Map an address to a certain privileged segment | 36 | * Map an address to a certain privileged segment |
36 | */ | 37 | */ |
@@ -42,8 +43,11 @@ | |||
42 | ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P3SEG)) | 43 | ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P3SEG)) |
43 | #define P4SEGADDR(a) \ | 44 | #define P4SEGADDR(a) \ |
44 | ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P4SEG)) | 45 | ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | P4SEG)) |
45 | 46 | #endif /* 29BIT */ | |
46 | #endif /* P1SEG */ | 47 | #endif /* P1SEG */ |
47 | 48 | ||
49 | /* Check if an address can be reached in 29 bits */ | ||
50 | #define IS_29BIT(a) (((unsigned long)(a)) < 0x20000000) | ||
51 | |||
48 | #endif /* __KERNEL__ */ | 52 | #endif /* __KERNEL__ */ |
49 | #endif /* __ASM_SH_ADDRSPACE_H */ | 53 | #endif /* __ASM_SH_ADDRSPACE_H */ |