diff options
Diffstat (limited to 'arch/sparc')
| -rw-r--r-- | arch/sparc/cpu/leon2/start.S | 1 | ||||
| -rw-r--r-- | arch/sparc/cpu/leon3/start.S | 1 | ||||
| -rw-r--r-- | arch/sparc/include/asm/byteorder.h | 1 | ||||
| -rw-r--r-- | arch/sparc/include/asm/config.h | 2 | ||||
| -rw-r--r-- | arch/sparc/include/asm/global_data.h | 2 | ||||
| -rw-r--r-- | arch/sparc/include/asm/unaligned.h | 10 | ||||
| -rw-r--r-- | arch/sparc/lib/board.c | 6 | 
7 files changed, 19 insertions, 4 deletions
| diff --git a/arch/sparc/cpu/leon2/start.S b/arch/sparc/cpu/leon2/start.S index dd58262c2..f22fb7eb1 100644 --- a/arch/sparc/cpu/leon2/start.S +++ b/arch/sparc/cpu/leon2/start.S @@ -21,6 +21,7 @@   * MA 02111-1307 USA   */ +#include <asm-offsets.h>  #include <config.h>  #include <asm/asmmacro.h>  #include <asm/winmacro.h> diff --git a/arch/sparc/cpu/leon3/start.S b/arch/sparc/cpu/leon3/start.S index 5c0808a2e..56ae88d64 100644 --- a/arch/sparc/cpu/leon3/start.S +++ b/arch/sparc/cpu/leon3/start.S @@ -21,6 +21,7 @@   * MA 02111-1307 USA   */ +#include <asm-offsets.h>  #include <config.h>  #include <asm/asmmacro.h>  #include <asm/winmacro.h> diff --git a/arch/sparc/include/asm/byteorder.h b/arch/sparc/include/asm/byteorder.h index b9fc65663..e3b3dec91 100644 --- a/arch/sparc/include/asm/byteorder.h +++ b/arch/sparc/include/asm/byteorder.h @@ -32,6 +32,7 @@  #if defined(__GNUC__) && !defined(__STRICT_ANSI__)  #define __BYTEORDER_HAS_U64__ +#define __SWAB_64_THRU_32__  #endif  #include <linux/byteorder/big_endian.h>  #endif				/* _SPARC_BYTEORDER_H */ diff --git a/arch/sparc/include/asm/config.h b/arch/sparc/include/asm/config.h index 6ddc3494c..7b6f30bd4 100644 --- a/arch/sparc/include/asm/config.h +++ b/arch/sparc/include/asm/config.h @@ -21,6 +21,8 @@  #ifndef _ASM_CONFIG_H_  #define _ASM_CONFIG_H_ +#define CONFIG_NEEDS_MANUAL_RELOC +  #define CONFIG_LMB  #define CONFIG_SYS_BOOT_RAMDISK_HIGH diff --git a/arch/sparc/include/asm/global_data.h b/arch/sparc/include/asm/global_data.h index 7c1ac0ddd..9b146748d 100644 --- a/arch/sparc/include/asm/global_data.h +++ b/arch/sparc/include/asm/global_data.h @@ -36,7 +36,7 @@   * global variables during system initialization (until we have set   * up the memory controller so that we can use RAM).   * - * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) + * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)   */  typedef struct global_data { diff --git a/arch/sparc/include/asm/unaligned.h b/arch/sparc/include/asm/unaligned.h new file mode 100644 index 000000000..0e646f7fa --- /dev/null +++ b/arch/sparc/include/asm/unaligned.h @@ -0,0 +1,10 @@ +#ifndef _ASM_SPARC_UNALIGNED_H +#define _ASM_SPARC_UNALIGNED_H + +/* + * The SPARC can not do unaligned accesses, it must be split into multiple + * byte accesses. The SPARC is in big endian mode. + */ +#include <asm-generic/unaligned.h> + +#endif	/* _ASM_SPARC_UNALIGNED_H */ diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c index 09bcdb048..ab31cfb50 100644 --- a/arch/sparc/lib/board.c +++ b/arch/sparc/lib/board.c @@ -244,7 +244,7 @@ void board_init_f(ulong bootflag)  	printf("CONFIG_SYS_PROM_OFFSET:        0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET,  	       CONFIG_SYS_PROM_SIZE);  	printf("CONFIG_SYS_GBL_DATA_OFFSET:    0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET, -	       CONFIG_SYS_GBL_DATA_SIZE); +	       GENERATED_GBL_DATA_SIZE);  #endif  #ifdef CONFIG_POST @@ -252,13 +252,13 @@ void board_init_f(ulong bootflag)  	post_run(NULL, POST_ROM | post_bootmode_get(0));  #endif -#if !defined(CONFIG_RELOC_FIXUP_WORKS) +#if defined(CONFIG_NEEDS_MANUAL_RELOC)  	/*  	 * We have to relocate the command table manually  	 */  	fixup_cmdtable(&__u_boot_cmd_start,  		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start)); -#endif /* !defined(CONFIG_RELOC_FIXUP_WORKS) */ +#endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */  #if defined(CONFIG_CMD_AMBAPP) && defined(CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP)  	puts("AMBA:\n"); |