提交 a5ba7d54 编写于 作者: P Paul Mundt

sh: Move __KERNEL__ up in asm/page.h.

This was breaking the uClibc build, which triggered the bogus page
size error.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 b3781435
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
[ P4 control ] 0xE0000000 [ P4 control ] 0xE0000000
*/ */
#ifdef __KERNEL__
/* PAGE_SHIFT determines the page size */ /* PAGE_SHIFT determines the page size */
#if defined(CONFIG_PAGE_SIZE_4KB) #if defined(CONFIG_PAGE_SIZE_4KB)
# define PAGE_SHIFT 12 # define PAGE_SHIFT 12
...@@ -51,7 +53,6 @@ ...@@ -51,7 +53,6 @@
#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT) #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT-PAGE_SHIFT)
#endif #endif
#ifdef __KERNEL__
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
extern void (*clear_page)(void *to); extern void (*clear_page)(void *to);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册