h8300: Fix alignment for .data
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
This commit is contained in:
parent
aca2518064
commit
75078de4ac
|
@ -13,6 +13,12 @@
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Size of kernel stack for each process. This must be a power of 2...
|
||||||
|
*/
|
||||||
|
#define THREAD_SIZE_ORDER 1
|
||||||
|
#define THREAD_SIZE 8192 /* 2 pages */
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -46,14 +52,6 @@ struct thread_info {
|
||||||
#define init_thread_info (init_thread_union.thread_info)
|
#define init_thread_info (init_thread_union.thread_info)
|
||||||
#define init_stack (init_thread_union.stack)
|
#define init_stack (init_thread_union.stack)
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Size of kernel stack for each process. This must be a power of 2...
|
|
||||||
*/
|
|
||||||
#define THREAD_SIZE_ORDER 1
|
|
||||||
#define THREAD_SIZE 8192 /* 2 pages */
|
|
||||||
|
|
||||||
|
|
||||||
/* how to get the thread information struct from C */
|
/* how to get the thread information struct from C */
|
||||||
static inline struct thread_info *current_thread_info(void)
|
static inline struct thread_info *current_thread_info(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include <asm-generic/vmlinux.lds.h>
|
#include <asm-generic/vmlinux.lds.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/thread_info.h>
|
||||||
|
|
||||||
#define ROMTOP 0x000000
|
#define ROMTOP 0x000000
|
||||||
#define RAMTOP 0x400000
|
#define RAMTOP 0x400000
|
||||||
|
@ -42,11 +43,10 @@ SECTIONS
|
||||||
. = RAMTOP;
|
. = RAMTOP;
|
||||||
_ramstart = .;
|
_ramstart = .;
|
||||||
#define ADDR(x) ROMEND
|
#define ADDR(x) ROMEND
|
||||||
#else
|
|
||||||
#endif
|
#endif
|
||||||
_sdata = . ;
|
_sdata = . ;
|
||||||
__data_start = . ;
|
__data_start = . ;
|
||||||
RW_DATA_SECTION(0,0,0)
|
RW_DATA_SECTION(0, PAGE_SIZE, THREAD_SIZE)
|
||||||
#if defined(CONFIG_ROMKERNEL)
|
#if defined(CONFIG_ROMKERNEL)
|
||||||
#undef ADDR
|
#undef ADDR
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue