diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2015-05-31 10:28:17 -0400 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2015-11-08 08:44:38 -0500 |
commit | 75078de4ac2901315b77dd813ae2bcb6a5fc1238 (patch) | |
tree | 987e46fd5059a1cc16d57df10ef4b9085add1ed9 | |
parent | aca2518064556ae5658974d78cb71f4883911d3d (diff) |
h8300: Fix alignment for .data
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
-rw-r--r-- | arch/h8300/include/asm/thread_info.h | 14 | ||||
-rw-r--r-- | arch/h8300/kernel/vmlinux.lds.S | 4 |
2 files changed, 8 insertions, 10 deletions
diff --git a/arch/h8300/include/asm/thread_info.h b/arch/h8300/include/asm/thread_info.h index 544c30785ad4..b408fe660cf8 100644 --- a/arch/h8300/include/asm/thread_info.h +++ b/arch/h8300/include/asm/thread_info.h | |||
@@ -13,6 +13,12 @@ | |||
13 | 13 | ||
14 | #ifdef __KERNEL__ | 14 | #ifdef __KERNEL__ |
15 | 15 | ||
16 | /* | ||
17 | * Size of kernel stack for each process. This must be a power of 2... | ||
18 | */ | ||
19 | #define THREAD_SIZE_ORDER 1 | ||
20 | #define THREAD_SIZE 8192 /* 2 pages */ | ||
21 | |||
16 | #ifndef __ASSEMBLY__ | 22 | #ifndef __ASSEMBLY__ |
17 | 23 | ||
18 | /* | 24 | /* |
@@ -46,14 +52,6 @@ struct thread_info { | |||
46 | #define init_thread_info (init_thread_union.thread_info) | 52 | #define init_thread_info (init_thread_union.thread_info) |
47 | #define init_stack (init_thread_union.stack) | 53 | #define init_stack (init_thread_union.stack) |
48 | 54 | ||
49 | |||
50 | /* | ||
51 | * Size of kernel stack for each process. This must be a power of 2... | ||
52 | */ | ||
53 | #define THREAD_SIZE_ORDER 1 | ||
54 | #define THREAD_SIZE 8192 /* 2 pages */ | ||
55 | |||
56 | |||
57 | /* how to get the thread information struct from C */ | 55 | /* how to get the thread information struct from C */ |
58 | static inline struct thread_info *current_thread_info(void) | 56 | static inline struct thread_info *current_thread_info(void) |
59 | { | 57 | { |
diff --git a/arch/h8300/kernel/vmlinux.lds.S b/arch/h8300/kernel/vmlinux.lds.S index 7c302dcf5249..cb5dfb02c88d 100644 --- a/arch/h8300/kernel/vmlinux.lds.S +++ b/arch/h8300/kernel/vmlinux.lds.S | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <asm-generic/vmlinux.lds.h> | 1 | #include <asm-generic/vmlinux.lds.h> |
2 | #include <asm/page.h> | 2 | #include <asm/page.h> |
3 | #include <asm/thread_info.h> | ||
3 | 4 | ||
4 | #define ROMTOP 0x000000 | 5 | #define ROMTOP 0x000000 |
5 | #define RAMTOP 0x400000 | 6 | #define RAMTOP 0x400000 |
@@ -42,11 +43,10 @@ SECTIONS | |||
42 | . = RAMTOP; | 43 | . = RAMTOP; |
43 | _ramstart = .; | 44 | _ramstart = .; |
44 | #define ADDR(x) ROMEND | 45 | #define ADDR(x) ROMEND |
45 | #else | ||
46 | #endif | 46 | #endif |
47 | _sdata = . ; | 47 | _sdata = . ; |
48 | __data_start = . ; | 48 | __data_start = . ; |
49 | RW_DATA_SECTION(0,0,0) | 49 | RW_DATA_SECTION(0, PAGE_SIZE, THREAD_SIZE) |
50 | #if defined(CONFIG_ROMKERNEL) | 50 | #if defined(CONFIG_ROMKERNEL) |
51 | #undef ADDR | 51 | #undef ADDR |
52 | #endif | 52 | #endif |