mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] i386: CONFIG_PHYSICAL_START cleanup
Defining __PHYSICAL_START and __KERNEL_START in asm-i386/page.h works but it triggers a full kernel rebuild for the silliest of reasons. This modifies the users to directly use CONFIG_PHYSICAL_START and linux/config.h which prevents the full rebuild problem, which makes the code much more maintainer and hopefully user friendly. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Vivek Goyal <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
parent
8621b81c74
commit
2a43f3ede4
4 changed files with 7 additions and 12 deletions
|
|
@ -112,12 +112,9 @@ extern int page_is_ram(unsigned long pagenr);
|
|||
|
||||
#ifdef __ASSEMBLY__
|
||||
#define __PAGE_OFFSET CONFIG_PAGE_OFFSET
|
||||
#define __PHYSICAL_START CONFIG_PHYSICAL_START
|
||||
#else
|
||||
#define __PAGE_OFFSET ((unsigned long)CONFIG_PAGE_OFFSET)
|
||||
#define __PHYSICAL_START ((unsigned long)CONFIG_PHYSICAL_START)
|
||||
#endif
|
||||
#define __KERNEL_START (__PAGE_OFFSET + __PHYSICAL_START)
|
||||
|
||||
|
||||
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
||||
|
|
|
|||
Loading…
Reference in a new issue