mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 04:59:05 -04:00
sh: Split out 29-bit and 32-bit physical mode definitions.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
af3c7dfe82
commit
36bcd39dbc
3 changed files with 29 additions and 1 deletions
|
|
@ -28,6 +28,23 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
|
|||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
|
||||
/*
|
||||
* Effective and physical address definitions, to aid with sign
|
||||
* extension.
|
||||
*/
|
||||
#define NEFF 32
|
||||
#define NEFF_SIGN (1LL << (NEFF - 1))
|
||||
#define NEFF_MASK (-1LL << NEFF)
|
||||
|
||||
#ifdef CONFIG_29BIT
|
||||
#define NPHYS 29
|
||||
#else
|
||||
#define NPHYS 32
|
||||
#endif
|
||||
|
||||
#define NPHYS_SIGN (1LL << (NPHYS - 1))
|
||||
#define NPHYS_MASK (-1LL << NPHYS)
|
||||
|
||||
/*
|
||||
* traditional two-level paging structure
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue