x86: General cleanup
Subsystems (4)
cover x86: General cleanup
The following is a series of relative minor x86 patches. Patch 4 (rename i386 to x86) is far more trivial than it looks :)
In theory they could be submitted as six mutually independent patches, but the order becomes important due to the rename and they are all 'cleanup' patches with no significant functional changes
NOTE: checkpatch does complain a bit about the Daniel Engstr?m's name and the '%' used to designate registers in asm files plus there is one long line picked up in the i386 to x86 rename
Graeme Russ (6):
eNET: Fix saveenv crash
eNET: Remove config.mk
x86: Code cleanup
x86: Rename i386 to x86
sc520: Move reset to stand-alone file
x86: Update MAINTAINERS and delete README files
MAINTAINERS | 4 +-
MAKEALL | 4 +-
Makefile | 4 +-
README | 2 +-
arch/{i386 => x86}/config.mk | 0
arch/{i386 => x86}/cpu/Makefile | 0
arch/{i386 => x86}/cpu/config.mk | 2 +-
arch/{i386 => x86}/cpu/cpu.c | 33 ++++-----
arch/{i386 => x86}/cpu/interrupts.c | 8 +-
arch/{i386 => x86}/cpu/resetvec.S | 5 +-
arch/{i386 => x86}/cpu/sc520/Makefile | 1 +
arch/{i386 => x86}/cpu/sc520/sc520.c | 18 +----
arch/{i386 => x86}/cpu/sc520/sc520_car.S | 5 +-
arch/{i386 => x86}/cpu/sc520/sc520_pci.c | 14 ++--
.../processor.h => x86/cpu/sc520/sc520_reset.c} | 24 ++++--
arch/{i386 => x86}/cpu/sc520/sc520_sdram.c | 4 +-
arch/{i386 => x86}/cpu/sc520/sc520_ssi.c | 5 +-
arch/{i386 => x86}/cpu/sc520/sc520_timer.c | 7 +-
arch/{i386 => x86}/cpu/start.S | 34 ++++-----
arch/{i386 => x86}/cpu/start16.S | 8 ++-
arch/{i386 => x86}/cpu/u-boot.lds | 5 +-
arch/{i386 => x86}/include/asm/bitops.h | 0
arch/{i386 => x86}/include/asm/bootparam.h | 0
arch/{i386 => x86}/include/asm/byteorder.h | 0
arch/{i386 => x86}/include/asm/config.h | 0
arch/{i386 => x86}/include/asm/e820.h | 0
arch/{i386 => x86}/include/asm/errno.h | 0
arch/{i386 => x86}/include/asm/global_data.h | 0
arch/{i386 => x86}/include/asm/i8254.h | 0
arch/{i386 => x86}/include/asm/i8259.h | 0
arch/{i386 => x86}/include/asm/ibmpc.h | 0
arch/{i386 => x86}/include/asm/ic/pci.h | 0
arch/{i386 => x86}/include/asm/ic/sc520.h | 0
arch/{i386 => x86}/include/asm/ic/ssi.h | 0
arch/{i386 => x86}/include/asm/interrupt.h | 4 +-
arch/{i386 => x86}/include/asm/io.h | 0
arch/{i386 => x86}/include/asm/ioctl.h | 0
arch/{i386 => x86}/include/asm/ist.h | 0
arch/{i386 => x86}/include/asm/pci.h | 0
arch/{i386 => x86}/include/asm/posix_types.h | 0
arch/{i386 => x86}/include/asm/processor-flags.h | 0
arch/{i386 => x86}/include/asm/processor.h | 0
arch/{i386 => x86}/include/asm/ptrace.h | 0
arch/{i386 => x86}/include/asm/realmode.h | 0
arch/{i386 => x86}/include/asm/string.h | 0
arch/{i386 => x86}/include/asm/types.h | 0
.../u-boot-i386.h => x86/include/asm/u-boot-x86.h} | 4 +-
arch/{i386 => x86}/include/asm/u-boot.h | 0
arch/{i386 => x86}/include/asm/unaligned.h | 0
arch/{i386 => x86}/include/asm/video/edid.h | 0
arch/{i386 => x86}/include/asm/zimage.h | 0
arch/{i386 => x86}/lib/Makefile | 0
arch/{i386 => x86}/lib/bios.S | 3 +-
arch/{i386 => x86}/lib/bios.h | 12 ++--
arch/{i386 => x86}/lib/bios_pci.S | 0
arch/{i386 => x86}/lib/bios_setup.c | 3 +-
arch/{i386 => x86}/lib/board.c | 23 +++----
arch/{i386 => x86}/lib/bootm.c | 15 +++--
arch/{i386 => x86}/lib/interrupts.c | 16 ++--
arch/{i386 => x86}/lib/pcat_interrupts.c | 4 +-
arch/{i386 => x86}/lib/pcat_timer.c | 2 +-
arch/{i386 => x86}/lib/pci.c | 18 ++---
arch/{i386 => x86}/lib/pci_type1.c | 27 ++++++--
arch/{i386 => x86}/lib/realmode.c | 10 +--
arch/{i386 => x86}/lib/realmode_switch.S | 1 -
arch/{i386 => x86}/lib/timer.c | 5 +-
arch/{i386 => x86}/lib/video.c | 27 +++-----
arch/{i386 => x86}/lib/video_bios.c | 2 +-
arch/{i386 => x86}/lib/zimage.c | 4 +-
board/eNET/config.mk | 24 ------
board/eNET/eNET_pci.c | 7 +-
boards.cfg | 4 +-
common/exports.c | 2 +-
doc/README-i386 | 74 --------------------
doc/TODO-i386 | 29 --------
examples/standalone/stubs.c | 4 +-
include/common.h | 6 +-
include/configs/eNET.h | 23 ++++--
include/exports.h | 2 +-
79 files changed, 209 insertions(+), 333 deletions(-)
rename arch/{i386 => x86}/config.mk (100%)
rename arch/{i386 => x86}/cpu/Makefile (100%)
rename arch/{i386 => x86}/cpu/config.mk (94%)
rename arch/{i386 => x86}/cpu/cpu.c (89%)
rename arch/{i386 => x86}/cpu/interrupts.c (99%)
rename arch/{i386 => x86}/cpu/resetvec.S (89%)
rename arch/{i386 => x86}/cpu/sc520/Makefile (96%)
rename arch/{i386 => x86}/cpu/sc520/sc520.c (82%)
rename arch/{i386 => x86}/cpu/sc520/sc520_car.S (97%)
rename arch/{i386 => x86}/cpu/sc520/sc520_pci.c (94%)
copy arch/{i386/include/asm/processor.h => x86/cpu/sc520/sc520_reset.c} (67%)
rename arch/{i386 => x86}/cpu/sc520/sc520_sdram.c (99%)
rename arch/{i386 => x86}/cpu/sc520/sc520_ssi.c (94%)
rename arch/{i386 => x86}/cpu/sc520/sc520_timer.c (94%)
rename arch/{i386 => x86}/cpu/start.S (84%)
rename arch/{i386 => x86}/cpu/start16.S (93%)
rename arch/{i386 => x86}/cpu/u-boot.lds (90%)
rename arch/{i386 => x86}/include/asm/bitops.h (100%)
rename arch/{i386 => x86}/include/asm/bootparam.h (100%)
rename arch/{i386 => x86}/include/asm/byteorder.h (100%)
rename arch/{i386 => x86}/include/asm/config.h (100%)
rename arch/{i386 => x86}/include/asm/e820.h (100%)
rename arch/{i386 => x86}/include/asm/errno.h (100%)
rename arch/{i386 => x86}/include/asm/global_data.h (100%)
rename arch/{i386 => x86}/include/asm/i8254.h (100%)
rename arch/{i386 => x86}/include/asm/i8259.h (100%)
rename arch/{i386 => x86}/include/asm/ibmpc.h (100%)
rename arch/{i386 => x86}/include/asm/ic/pci.h (100%)
rename arch/{i386 => x86}/include/asm/ic/sc520.h (100%)
rename arch/{i386 => x86}/include/asm/ic/ssi.h (100%)
rename arch/{i386 => x86}/include/asm/interrupt.h (95%)
rename arch/{i386 => x86}/include/asm/io.h (100%)
rename arch/{i386 => x86}/include/asm/ioctl.h (100%)
rename arch/{i386 => x86}/include/asm/ist.h (100%)
rename arch/{i386 => x86}/include/asm/pci.h (100%)
rename arch/{i386 => x86}/include/asm/posix_types.h (100%)
rename arch/{i386 => x86}/include/asm/processor-flags.h (100%)
rename arch/{i386 => x86}/include/asm/processor.h (100%)
rename arch/{i386 => x86}/include/asm/ptrace.h (100%)
rename arch/{i386 => x86}/include/asm/realmode.h (100%)
rename arch/{i386 => x86}/include/asm/string.h (100%)
rename arch/{i386 => x86}/include/asm/types.h (100%)
rename arch/{i386/include/asm/u-boot-i386.h => x86/include/asm/u-boot-x86.h} (93%)
rename arch/{i386 => x86}/include/asm/u-boot.h (100%)
rename arch/{i386 => x86}/include/asm/unaligned.h (100%)
rename arch/{i386 => x86}/include/asm/video/edid.h (100%)
rename arch/{i386 => x86}/include/asm/zimage.h (100%)
rename arch/{i386 => x86}/lib/Makefile (100%)
rename arch/{i386 => x86}/lib/bios.S (99%)
rename arch/{i386 => x86}/lib/bios.h (90%)
rename arch/{i386 => x86}/lib/bios_pci.S (100%)
rename arch/{i386 => x86}/lib/bios_setup.c (99%)
rename arch/{i386 => x86}/lib/board.c (95%)
rename arch/{i386 => x86}/lib/bootm.c (86%)
rename arch/{i386 => x86}/lib/interrupts.c (88%)
rename arch/{i386 => x86}/lib/pcat_interrupts.c (96%)
rename arch/{i386 => x86}/lib/pcat_timer.c (97%)
rename arch/{i386 => x86}/lib/pci.c (94%)
rename arch/{i386 => x86}/lib/pci_type1.c (61%)
rename arch/{i386 => x86}/lib/realmode.c (95%)
rename arch/{i386 => x86}/lib/realmode_switch.S (99%)
rename arch/{i386 => x86}/lib/timer.c (94%)
rename arch/{i386 => x86}/lib/video.c (94%)
rename arch/{i386 => x86}/lib/video_bios.c (99%)
rename arch/{i386 => x86}/lib/zimage.c (98%)
delete mode 100644 board/eNET/config.mk
delete mode 100644 doc/README-i386
delete mode 100644 doc/TODO-i386PATCH 1/6 eNET: Fix saveenv crash
CONFIG_ENV_SIZE = CONFIG_ENV_SECT_SIZE = 128kB but CONFIG_SYS_STACK_SIZE is only 32kB resulting in saveenv causing a stack overflow and crashing U-Boot. Resolve by reducing CONFIG_ENV_SIZE to 4kB
Also fix up CONFIG_SYS_MALLOC_LEN to correctly use environment sector size and add some comments to the memory organisation configuration
--- include/configs/eNET.h | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-)
include/configs/eNET.h +17 -6
@@ -158,16 +158,19 @@/*----------------------------------------------------------------------- * Memory organization: * 32kB Stack +* 16kB Cache-As-RAM @ 0x19200000 * 256kB Monitor +* (128kB + Environment Sector Size) malloc pool */ -#define CONFIG_SYS_STACK_SIZE 0x8000 +#define CONFIG_SYS_STACK_SIZE (32 * 1024)#define CONFIG_SYS_CAR_ADDR 0x19200000 -#define CONFIG_SYS_CAR_SIZE 0x00004000 +#define CONFIG_SYS_CAR_SIZE (16 * 1024)#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_CAR_ADDR + \ CONFIG_SYS_CAR_SIZE)#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE#define CONFIG_SYS_MONITOR_LEN (256 * 1024) -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SECT_SIZE + \ + 128*1024)/* Address of temporary Global Data */ #define CONFIG_SYS_INIT_GD_ADDR CONFIG_SYS_CAR_ADDR
@@ -198,17 +201,25 @@#define CONFIG_SYS_FLASH_LEGACY_512Kx8#define CONFIG_SYS_FLASH_ERASE_TOUT 2000/* ms */ #define CONFIG_SYS_FLASH_WRITE_TOUT 2000/* ms */ +/*----------------------------------------------------------------------- * Environment configuration +* - Boot flash is 512kB with 64kB sectors +* - StrataFlash is 32MB with 128kB sectors +* - Redundant embedded environment is 25% of the Boot flash +* - Redundant StrataFlash environment is <1% of the StrataFlash +* - Environment is therefore located in StrataFlash +* - Primary copy is located in first sector of first flash +* - Redundant copy is located in second sector of first flash +* - Stack is only 32kB, so environment size is limited to 4kB */ #define CONFIG_ENV_IS_IN_FLASH #define CONFIG_ENV_SECT_SIZE 0x20000 -#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE +#define CONFIG_ENV_SIZE 0x01000#define CONFIG_ENV_ADDR CONFIG_SYS_FLASH_BASE_1 -/* Redundant Copy */ #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE_1 + \ CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SECT_SIZE +#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE/*----------------------------------------------------------------------- * PCI configuration
Signature · 1 line
1.7.1.422.g049e9
PATCH 1/6 eNET: Fix saveenv crash
Quoted 11 lines · Graeme Russ
CONFIG_ENV_SIZE=CONFIG_ENV_SECT_SIZE= 128kB butCONFIG_SYS_STACK_SIZEis only 32kB resulting in saveenv causing a stack overflow and crashing U-Boot. Resolve by reducingCONFIG_ENV_SIZEto 4kBAlso fix up
CONFIG_SYS_MALLOC_LENto correctly use environment sector size and add some comments to the memory organisation configurationSigned-off-by Graeme Russ <[email protected]>--- include/configs/eNET.h | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-)
Applied to u-boot-x86, master branch, thanks.
Regards,
Graeme Russ
PATCH 2/6 eNET: Remove config.mk
In reply to Graeme RussBy including <config.h> in the ld script, CONFIG_SYS_MONITOR_LEN (defined in the boards config file) can be used in lieu of FLASH_SIZE (defined in the board specific config.mk)
As this is the last remaining entry in the board specific config.mk, this file can now be removed
--- arch/i386/cpu/u-boot.lds | 5 +++-- board/eNET/config.mk | 24 ------------------------ 2 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 board/eNET/config.mk
arch/i386/cpu/u-boot.lds +3 -2
@@ -21,6 +21,7 @@ * MA 02111-1307 USA */ +#include <config.h> OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(_start)
@@ -89,8 +90,8 @@ SECTIONS * Reset Vector at the end of the Flash ROM */ . = START_16; - .start16 : AT (CONFIG_SYS_TEXT_BASE + (FLASH_SIZE - RESET_SEG_SIZE + START_16)) { KEEP(*(.start16)); } + .start16 : AT (CONFIG_SYS_TEXT_BASE + (CONFIG_SYS_MONITOR_LEN - RESET_SEG_SIZE + START_16)) { KEEP(*(.start16)); } . = RESET_VEC_LOC; - .resetvec : AT (CONFIG_SYS_TEXT_BASE + (FLASH_SIZE - RESET_SEG_SIZE + RESET_VEC_LOC)) { KEEP(*(.resetvec)); } + .resetvec : AT (CONFIG_SYS_TEXT_BASE + (CONFIG_SYS_MONITOR_LEN - RESET_SEG_SIZE + RESET_VEC_LOC)) { KEEP(*(.resetvec)); } }
board/eNET/config.mk deleted +0 -24
@@ -1,24 +0,0 @@ -# -# (C) Copyright 2002 -# Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. -# -# See file CREDITS for list of people who contributed to this -# project. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, -# MA 02111-1307 USA -# - -LDPPFLAGS += -DFLASH_SIZE=0x40000
Signature · 1 line
1.7.1.422.g049e9
PATCH 2/6 eNET: Remove config.mk
Quoted 7 lines · Graeme Russ
By including <
config.h> in the ld script,CONFIG_SYS_MONITOR_LEN(defined in the boards config file) can be used in lieu ofFLASH_SIZE(defined in the board specific config.mk)As this is the last remaining entry in the board specific config.mk, this file can now be removed
Quoted 6 lines
Signed-off-by Graeme Russ <[email protected]>--- arch/i386/cpu/u-boot.lds | 5 +++-- board/eNET/config.mk | 24 ------------------------ 2 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 board/eNET/config.mk
Applied to u-boot-x86, master branch, thanks.
Regards,
Graeme Russ
PATCH 3/6 x86: Code cleanup
In reply to Graeme RussMake the copyright notices in the x86 files consistent and update them with proper attributions for recent updates
Also fix a few comment style/accuracy and whitespace/blank line issues
--- arch/i386/cpu/cpu.c | 31 +++++++++++------------ arch/i386/cpu/interrupts.c | 8 +++--- arch/i386/cpu/resetvec.S | 3 +- arch/i386/cpu/sc520/sc520.c | 8 +++--- arch/i386/cpu/sc520/sc520_car.S | 5 +-- arch/i386/cpu/sc520/sc520_pci.c | 14 ++++------ arch/i386/cpu/sc520/sc520_sdram.c | 4 +- arch/i386/cpu/sc520/sc520_ssi.c | 5 +--- arch/i386/cpu/sc520/sc520_timer.c | 7 +++-- arch/i386/cpu/start.S | 28 ++++++++------------- arch/i386/cpu/start16.S | 6 ++++- arch/i386/lib/bios.S | 3 +- arch/i386/lib/bios.h | 44 ++++++++++++++++----------------- arch/i386/lib/bios_setup.c | 3 +- arch/i386/lib/board.c | 21 ++++++---------- arch/i386/lib/bootm.c | 15 +++++++---- arch/i386/lib/interrupts.c | 16 ++++++------ arch/i386/lib/pcat_interrupts.c | 4 +- arch/i386/lib/pcat_timer.c | 2 +- arch/i386/lib/pci.c | 18 ++++++------- arch/i386/lib/pci_type1.c | 27 ++++++++++++++++---- arch/i386/lib/realmode.c | 10 ++----- arch/i386/lib/realmode_switch.S | 1 - arch/i386/lib/timer.c | 5 +++- arch/i386/lib/video.c | 48 +++++++++++++++--------------------- arch/i386/lib/video_bios.c | 2 +- arch/i386/lib/zimage.c | 4 +- board/eNET/eNET_pci.c | 7 +++-- 28 files changed, 170 insertions(+), 179 deletions(-)
arch/i386/cpu/cpu.c +15 -16
@@ -1,6 +1,9 @@/* +* (C) Copyright 2008-2011 +* Graeme Russ, <[email protected]> +* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
@@ -29,18 +32,16 @@* MA 02111-1307 USA */ -/* -* CPU specific code -*/ -#include <common.h> #include <command.h> #include <asm/processor.h> #include <asm/processor-flags.h> #include <asm/interrupt.h> -/* Constructor for a conventional segment GDT (or LDT) entry */ -/* This is a macro so it can be used in initializers */ +/* +* Constructor for a conventional segment GDT (or LDT) entry +* This is a macro so it can be used in initialisers +*/ #define GDT_ENTRY (flags, base, limit) \ ((((base) & 0xff000000ULL) << (56-24)) | \ (((flags) & 0x0000f0ffULL) << 40) | \
@@ -48,10 +49,6 @@ (((base) & 0x00ffffffULL) << 16) | \ (((limit) & 0x0000ffffULL))) -/* -* Set up the GDT -*/ - struct gdt_ptr { u16 len; u32 ptr;
@@ -59,8 +56,10 @@ struct gdt_ptr {static void reload_gdt (void ) { - /* There are machines which are known to not boot with the GDT - being 8-byte unaligned. Intel recommends 16 byte alignment. */ +/* +* There are machines which are known to not boot with the GDT +* being 8-byte unaligned. Intel recommends 16 byte alignment +*/ static const u64 boot_gdt[] __attribute__((aligned(16))) = { /* CS: code, read/execute, 4 GB, base 0 */ [GDT_ENTRY_32BIT_CS] = GDT_ENTRY(0xc09b, 0, 0xfffff),
@@ -86,7 +85,6 @@ static void reload_gdt(void) : : "m" (gdt) : "ecx"); } -int x86_cpu_init_f (void ) {const u32 em_rst = ~X86_CR0_EM ;
@@ -125,7 +123,9 @@ int cpu_init_r(void) __attribute__((weak, alias("x86_cpu_init_r")));int do_reset (cmd_tbl_t *cmdtp,int flag,int argc,char *const argv[]) {printf ("resetting ...\n" ); -udelay (50000 );/* wait 50 ms */ + +/* wait 50 ms */ +udelay (50000 );disable_interrupts ();reset_cpu (0 );
@@ -136,7 +136,6 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])void flush_cache (unsigned long dummy1,unsigned long dummy2) { asm("wbinvd\n" ); -return ; }void __attribute__ ((regparm (0 )))generate_gpf (void );
arch/i386/cpu/interrupts.c +4 -4
@@ -1,9 +1,9 @@/* -* (C) Copyright 2008 -* Graeme Russ, graeme.russ at gmail.com. +* (C) Copyright 2008-2011 +* Graeme Russ, <[email protected]> * * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * Portions of this file are derived from the Linux kernel source * Copyright (C) 1991, 1992 Linus Torvalds
@@ -45,7 +45,7 @@* read/write functions for the control registers and messing everything up. * A memory clobber would solve the problem, but would prevent reordering of * all loads stores around it, which can hurt performance. Solution is to -* use a variable and mimic reads and writes to it to enforce serialization +* use a variable and mimic reads and writes to it to enforce serialisation */ static unsigned long __force_order;
arch/i386/cpu/resetvec.S +2 -1
@@ -1,7 +1,8 @@ /* * U-boot - i386 Startup Code * - * Copyright (c) 2002 Omicron Ceti AB, Daniel Engstr?m <[email protected]> + * (C) Copyright 2002 + * Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/cpu/sc520/sc520.c +4 -4
@@ -1,6 +1,9 @@/* +* (C) Copyright 2008-2011 +* Graeme Russ, <[email protected]> +* * (C) Copyright 2002 -* Daniel Engstr???m, Omicron Ceti AB <[email protected]>. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -21,9 +24,6 @@* MA 02111-1307 USA */ -/* stuff specific for the sc520, -* but idependent of implementation */ -#include <common.h> #include <asm/io.h> #include <asm/processor-flags.h>
arch/i386/cpu/sc520/sc520_car.S +2 -3
@@ -1,6 +1,6 @@ /* - * (C) Copyright 2010 - * Graeme Russ <[email protected]>. + * (C) Copyright 2010-2011 + * Graeme Russ, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -21,7 +21,6 @@ * MA 02111-1307 USA */ - #include <config.h> #include <asm/processor-flags.h> #include <asm/ic/sc520.h>
arch/i386/cpu/sc520/sc520_pci.c +6 -8
@@ -1,6 +1,9 @@/* +* (C) Copyright 2008-2011 +* Graeme Russ, <[email protected]> +* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB <[email protected]>. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -21,8 +24,6 @@* MA 02111-1307 USA */ -/* stuff specific for the sc520, but independent of implementation */ -#include <common.h> #include <pci.h> #include <asm/io.h>
@@ -54,7 +55,6 @@ static struct { { SC520_IRQ15, 1, 0x80 } }; -/* The interrupt used for PCI INTA-INTD */ int sc520_pci_ints[15 ] = {-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,
@@ -68,9 +68,8 @@ int pci_sc520_set_irq(int pci_pin, int irq)u8 tmpb;u16 tmpw; -# if 1 -printf ("set_irq(): map INT%c to IRQ%d\n" , pci_pin +'A' , irq); -#endif +debug ("set_irq(): map INT%c to IRQ%d\n" , pci_pin +'A' , irq); +if (irq <0 || irq >15 ) {return -1 ;/* illegal irq */ }
@@ -138,5 +137,4 @@ void pci_sc520_init(struct pci_controller *hose)/* enable target memory acceses on host brige */ pci_write_config_word (0 ,PCI_COMMAND ,PCI_COMMAND_MEMORY |PCI_COMMAND_MASTER ); - }
arch/i386/cpu/sc520/sc520_sdram.c +2 -2
@@ -1,6 +1,6 @@/* -* (C) Copyright 2010 -* Graeme Russ <[email protected]>. +* (C) Copyright 2010,2011 +* Graeme Russ, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/cpu/sc520/sc520_ssi.c +1 -4
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB <[email protected]>. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -21,8 +21,6 @@* MA 02111-1307 USA */ -/* stuff specific for the sc520, but independent of implementation */ -#include <common.h> #include <asm/io.h> #include <asm/ic/ssi.h>
@@ -77,7 +75,6 @@ u8 ssi_txrx_byte(u8 data)return readb (&sc520_mmcr->ssircv); } -void ssi_tx_byte (u8 data) {writeb (data, &sc520_mmcr->ssixmit);
arch/i386/cpu/sc520/sc520_timer.c +4 -3
@@ -1,6 +1,9 @@/* +* (C) Copyright 2008-2011 +* Graeme Russ, <[email protected]> +* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB <[email protected]>. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -21,8 +24,6 @@* MA 02111-1307 USA */ -/* stuff specific for the sc520, but independent of implementation */ -#include <common.h> #include <asm/io.h> #include <asm/interrupt.h>
arch/i386/cpu/start.S +11 -17
@@ -1,7 +1,11 @@ /* * U-boot - i386 Startup Code * - * Copyright (c) 2002 Omicron Ceti AB, Daniel Engstr?m <[email protected]> + * (C) Copyright 2008-2011 + * Graeme Russ, <[email protected]> + * + * (C) Copyright 2002 + * Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -22,13 +26,11 @@ * MA 02111-1307 USA */ - #include <config.h> #include <version.h> #include <asm/global_data.h> #include <asm/processor-flags.h> - .section .text .code32 .globl _start
@@ -56,8 +58,8 @@ _i386boot_start: _start: /* This is the 32-bit cold-reset entry point */ - movl $0x18, %eax /* Load our segement registes, the - * gdt have already been loaded by start16.S */ + /* Load the segement registes to match the gdt loaded in start16.S */ + movl $0x18, %eax movw %ax, %fs movw %ax, %ds movw %ax, %gs
@@ -82,21 +84,13 @@ car_init_ret: * starting at CONFIG_SYS_CAR_ADDR to be used as a temporary stack */ movl $CONFIG_SYS_INIT_SP_ADDR, %esp - movl $CONFIG_SYS_INIT_GD_ADDR, %ebp - - /* Set Boot Flags in Global Data */ - movl %ebx, (GD_FLAGS * 4)(%ebp) - - /* Determine our load offset (and put in Global Data) */ - call 1f -1: popl %ecx - subl $1b, %ecx - movl %ecx, (GD_LOAD_OFF * 4)(%ebp) /* Set parameter to board_init_f() to boot flags */ - movl (GD_FLAGS * 4)(%ebp), %eax + xorl %eax, %eax + movw %bx, %ax - call board_init_f /* Enter, U-boot! */ + /* Enter, U-boot! */ + call board_init_f /* indicate (lack of) progress */ movw $0x85, %ax
arch/i386/cpu/start16.S +5 -1
@@ -1,7 +1,11 @@ /* * U-boot - i386 Startup Code * - * Copyright (c) 2002, 2003 Omicron Ceti AB, Daniel Engstr?m <[email protected]> + * (C) Copyright 2008-2011 + * Graeme Russ, <[email protected]> + * + * (C) Copyright 2002,2003 + * Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/lib/bios.S +1 -2
@@ -1,6 +1,6 @@ /* * (C) Copyright 2002 - * Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se + * Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -42,7 +42,6 @@ * a general purpose replacement for a real BIOS !! */ - .section .bios, "ax" .code16 .org 0
arch/i386/lib/bios.h +21 -23
62 lines not on this page · raw message
arch/i386/lib/bios_setup.c +1 -2
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -21,7 +21,6 @@* MA 02111-1307 USA */ -/* * Partly based on msbios.c from rolo 1.6: *----------------------------------------------------------------------
arch/i386/lib/board.c +8 -13
@@ -1,9 +1,12 @@/* +* (C) Copyright 2008-2011 +* Graeme Russ, <[email protected]> +* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * (C) Copyright 2002 -* Wolfgang Denk, DENX Software Engineering, wd at denx.de. +* Wolfgang Denk, DENX Software Engineering, <[email protected]> * * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
@@ -103,13 +106,6 @@ static int display_banner (void)return (0 ); } -/* -* WARNING: this code looks "cleaner" than the PowerPC version, but -* has the disadvantage that you either get nothing, or everything. -* On PowerPC, you might see "DRAM: " before the system hangs - which -* gives a simple yet clear indication which part of the -* initialization if failing. -*/ static int display_dram_config (void ) {int i;
@@ -141,7 +137,6 @@ static void display_flash_config (ulong size)* can relocate the monitor code to RAM. */ -/* * All attempts to come up with a "common" initialization sequence * that works for all boards and architectures failed: some of the
@@ -251,13 +246,13 @@ static int do_elf_reloc_fixups(void)return 0 ; } -/* -* Load U-Boot into RAM, initialize BSS, perform relocation adjustments -*/ +/* Load U-Boot into RAM, initialize BSS, perform relocation adjustments */ void board_init_f (ulong boot_flags) {init_fnc_t **init_fnc_ptr; + gd->flags = boot_flags; +for (init_fnc_ptr = init_sequence_f; *init_fnc_ptr; ++init_fnc_ptr) {if ((*init_fnc_ptr)() !=0 )hang ();
arch/i386/lib/bootm.c +9 -6
@@ -5,10 +5,13 @@* * Copyright (C) 2001 Erik Mouw (J.A.K.Mouw at its.tudelft.nl) * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -17,8 +20,8 @@* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA */ #include <common.h>
arch/i386/lib/interrupts.c +8 -8
@@ -1,21 +1,21 @@/* * (C) Copyright 2009 -* Graeme Russ, graeme.russ at gmail.com +* Graeme Russ, <[email protected]> * * (C) Copyright 2007 -* Daniel Hellstrom, Gaisler Research, daniel at gaisler.com +* Daniel Hellstrom, Gaisler Research, <[email protected]> * * (C) Copyright 2006 -* Detlev Zundel, DENX Software Engineering, dzu at denx.de +* Detlev Zundel, DENX Software Engineering, <[email protected]> * * (C) Copyright -2003 -* Wolfgang Denk, DENX Software Engineering, wd at denx.de. +* Wolfgang Denk, DENX Software Engineering, <[email protected]> * * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * (C) Copyright 2001 -* Josh Huber <[email protected]>, Mission Critical Linux, Inc. +* Josh Huber, Mission Critical Linux, Inc, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -38,11 +38,11 @@/* * This file contains the high-level API for the interrupt sub-system -* of the i386 port of U-Boot. Most of the functionality has been +* of the x86 port of U-Boot. Most of the functionality has been * shamelessly stolen from the leon2 / leon3 ports of U-Boot. * Daniel Hellstrom, Detlev Zundel, Wolfgang Denk and Josh Huber are * credited for the corresponding work on those ports. The original -* interrupt handling routines for the i386 port were written by +* interrupt handling routines for the x86 port were written by * Daniel Engstr?m */
arch/i386/lib/pcat_interrupts.c +2 -2
@@ -1,9 +1,9 @@/* * (C) Copyright 2009 -* Graeme Russ, graeme.russ at gmail.com +* Graeme Russ, <[email protected]> * * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/lib/pcat_timer.c +1 -1
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/lib/pci.c +8 -10
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -54,10 +54,9 @@ int pci_shadow_rom(pci_dev_t dev, unsigned char *dest) class_code &=0xffffff00 ; class_code >>=8 ; -#if 0 -printf ("PCI Header Vendor %04x device %04x class %06x\n" , +debug ("PCI Header Vendor %04x device %04x class %06x\n" , vendor, device, class_code); -#endif +/* Enable the rom addess decoder */ pci_write_config_dword (dev,PCI_ROM_ADDRESS , (u32 )PCI_ROM_ADDRESS_MASK );pci_read_config_dword (dev,PCI_ROM_ADDRESS , &addr_reg);
@@ -70,13 +69,12 @@ int pci_shadow_rom(pci_dev_t dev, unsigned char *dest) size = (~(addr_reg&PCI_ROM_ADDRESS_MASK ))+1 ; -#if 0 -printf ("ROM is %d bytes\n" , size); -#endif +debug ("ROM is %d bytes\n" , size); + rom_addr =pci_get_rom_window (hose, size); -#if 0 -printf ("ROM mapped at %x \n" , rom_addr); -#endif + +debug ("ROM mapped at %x\n" , rom_addr); +pci_write_config_dword (dev,PCI_ROM_ADDRESS ,pci_phys_to_mem (dev, rom_addr) |PCI_ROM_ADDRESS_ENABLE );
arch/i386/lib/pci_type1.c +21 -6
@@ -1,15 +1,30 @@/* -* Support for type PCI configuration cycles. -* based on pci_indirect.c +* (C) Copyright 2002 +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * -* Copyright (C) 2002 Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. +* See file CREDITS for list of people who contributed to this +* project. * * This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version -* 2 of the License, or (at your option) any later version. +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA */ +/* +* Support for type PCI configuration cycles. +* based on pci_indirect.c +*/ #include <common.h> #include <asm/io.h> #include <pci.h>
arch/i386/lib/realmode.c +3 -7
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -26,10 +26,8 @@#include <asm/ptrace.h> #include <asm/realmode.h> -#define REALMODE_MAILBOX ((char*)0xe00) -extern ulong __realmode_start;extern ulong __realmode_size;extern char realmode_enter;
@@ -57,13 +55,11 @@ int enter_realmode(u16 seg, u16 off, struct pt_regs *in, struct pt_regs *out) {/* setup out thin bios emulation */ -if (bios_setup ()) { +if (bios_setup ())return -1 ; - } -if (realmode_setup ()) { +if (realmode_setup ())return -1 ; - } in->eip = off; in->xcs = seg;
arch/i386/lib/realmode_switch.S +0 -1
@@ -21,7 +21,6 @@ * MA 02111-1307 USA */ - /* 32bit -> 16bit -> 32bit mode switch code */ /*
arch/i386/lib/timer.c +4 -1
@@ -1,6 +1,9 @@/* +* (C) Copyright 2008,2009 +* Graeme Russ, <[email protected]> +* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/lib/video.c +20 -28
130 lines not on this page · raw message
arch/i386/lib/video_bios.c +1 -1
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
arch/i386/lib/zimage.c +2 -2
@@ -1,6 +1,6 @@/* * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB, daniel at omicron.se +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -22,7 +22,7 @@*/ /* -* Linux i386 zImage and bzImage loading +* Linux x86 zImage and bzImage loading * * based on the procdure described in * linux/Documentation/i386/boot.txt
board/eNET/eNET_pci.c +4 -3
@@ -1,9 +1,9 @@/* -* (C) Copyright 2008 -* Graeme Russ, graeme.russ at gmail.com. +* (C) Copyright 2008,2009 +* Graeme Russ, <[email protected]> * * (C) Copyright 2002 -* Daniel Engstr?m, Omicron Ceti AB <[email protected]>. +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -23,6 +23,7 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ +#include <common.h> #include <pci.h> #include <asm/pci.h>
Signature · 1 line
1.7.1.422.g049e9
PATCH 3/6 x86: Code cleanup
Quoted 28 lines · Graeme Russ
Make the copyright notices in the x86 files consistent and update them with proper attributions for recent updates
Also fix a few comment style/accuracy and whitespace/blank line issues
Signed-off-by Graeme Russ <[email protected]>--- arch/i386/cpu/cpu.c | 31 +++++++++++------------ arch/i386/cpu/interrupts.c | 8 +++--- arch/i386/cpu/resetvec.S | 3 +- arch/i386/cpu/sc520/sc520.c | 8 +++--- arch/i386/cpu/sc520/sc520_car.S | 5 +-- arch/i386/cpu/sc520/sc520_pci.c | 14 ++++------ arch/i386/cpu/sc520/sc520_sdram.c | 4 +- arch/i386/cpu/sc520/sc520_ssi.c | 5 +--- arch/i386/cpu/sc520/sc520_timer.c | 7 +++-- arch/i386/cpu/start.S | 28 ++++++++------------- arch/i386/cpu/start16.S | 6 ++++- arch/i386/lib/bios.S | 3 +- arch/i386/lib/bios.h | 44 ++++++++++++++++----------------- arch/i386/lib/bios_setup.c | 3 +- arch/i386/lib/board.c | 21 ++++++---------- arch/i386/lib/bootm.c | 15 +++++++---- arch/i386/lib/interrupts.c | 16 ++++++------ arch/i386/lib/pcat_interrupts.c | 4 +- arch/i386/lib/pcat_timer.c | 2 +- arch/i386/lib/pci.c | 18 ++++++------- arch/i386/lib/pci_type1.c | 27 ++++++++++++++++----
Quoted 8 lines
arch/i386/lib/realmode.c | 10 ++----- arch/i386/lib/realmode_switch.S | 1 - arch/i386/lib/timer.c | 5 +++- arch/i386/lib/video.c | 48 +++++++++++++++--------------------- arch/i386/lib/video_bios.c | 2 +- arch/i386/lib/zimage.c | 4 +- board/eNET/eNET_pci.c | 7 +++-- 28 files changed, 170 insertions(+), 179 deletions(-)
Applied to u-boot-x86, master branch, thanks.
Regards,
Graeme Russ
PATCH 4/6 x86: Rename i386 to x86
In reply to Graeme Russ---
MAKEALL | 4 ++--
Makefile | 4 ++--
README | 2 +-
arch/{i386 => x86}/config.mk | 0
arch/{i386 => x86}/cpu/Makefile | 0
arch/{i386 => x86}/cpu/config.mk | 2 +-
arch/{i386 => x86}/cpu/cpu.c | 2 +-
arch/{i386 => x86}/cpu/interrupts.c | 0
arch/{i386 => x86}/cpu/resetvec.S | 2 +-
arch/{i386 => x86}/cpu/sc520/Makefile | 0
arch/{i386 => x86}/cpu/sc520/sc520.c | 0
arch/{i386 => x86}/cpu/sc520/sc520_car.S | 0
arch/{i386 => x86}/cpu/sc520/sc520_pci.c | 0
arch/{i386 => x86}/cpu/sc520/sc520_sdram.c | 0
arch/{i386 => x86}/cpu/sc520/sc520_ssi.c | 0
arch/{i386 => x86}/cpu/sc520/sc520_timer.c | 0
arch/{i386 => x86}/cpu/start.S | 6 +++---
arch/{i386 => x86}/cpu/start16.S | 2 +-
arch/{i386 => x86}/cpu/u-boot.lds | 0
arch/{i386 => x86}/include/asm/bitops.h | 0
arch/{i386 => x86}/include/asm/bootparam.h | 0
arch/{i386 => x86}/include/asm/byteorder.h | 0
arch/{i386 => x86}/include/asm/config.h | 0
arch/{i386 => x86}/include/asm/e820.h | 0
arch/{i386 => x86}/include/asm/errno.h | 0
arch/{i386 => x86}/include/asm/global_data.h | 0
arch/{i386 => x86}/include/asm/i8254.h | 0
arch/{i386 => x86}/include/asm/i8259.h | 0
arch/{i386 => x86}/include/asm/ibmpc.h | 0
arch/{i386 => x86}/include/asm/ic/pci.h | 0
arch/{i386 => x86}/include/asm/ic/sc520.h | 0
arch/{i386 => x86}/include/asm/ic/ssi.h | 0
arch/{i386 => x86}/include/asm/interrupt.h | 4 ++--
arch/{i386 => x86}/include/asm/io.h | 0
arch/{i386 => x86}/include/asm/ioctl.h | 0
arch/{i386 => x86}/include/asm/ist.h | 0
arch/{i386 => x86}/include/asm/pci.h | 0
arch/{i386 => x86}/include/asm/posix_types.h | 0
arch/{i386 => x86}/include/asm/processor-flags.h | 0
arch/{i386 => x86}/include/asm/processor.h | 0
arch/{i386 => x86}/include/asm/ptrace.h | 0
arch/{i386 => x86}/include/asm/realmode.h | 0
arch/{i386 => x86}/include/asm/string.h | 0
arch/{i386 => x86}/include/asm/types.h | 0
.../u-boot-i386.h => x86/include/asm/u-boot-x86.h} | 4 ++--
arch/{i386 => x86}/include/asm/u-boot.h | 0
arch/{i386 => x86}/include/asm/unaligned.h | 0
arch/{i386 => x86}/include/asm/video/edid.h | 0
arch/{i386 => x86}/include/asm/zimage.h | 0
arch/{i386 => x86}/lib/Makefile | 0
arch/{i386 => x86}/lib/bios.S | 0
arch/{i386 => x86}/lib/bios.h | 0
arch/{i386 => x86}/lib/bios_pci.S | 0
arch/{i386 => x86}/lib/bios_setup.c | 0
arch/{i386 => x86}/lib/board.c | 2 +-
arch/{i386 => x86}/lib/bootm.c | 0
arch/{i386 => x86}/lib/interrupts.c | 0
arch/{i386 => x86}/lib/pcat_interrupts.c | 0
arch/{i386 => x86}/lib/pcat_timer.c | 0
arch/{i386 => x86}/lib/pci.c | 0
arch/{i386 => x86}/lib/pci_type1.c | 0
arch/{i386 => x86}/lib/realmode.c | 0
arch/{i386 => x86}/lib/realmode_switch.S | 0
arch/{i386 => x86}/lib/timer.c | 0
arch/{i386 => x86}/lib/video.c | 0
arch/{i386 => x86}/lib/video_bios.c | 0
arch/{i386 => x86}/lib/zimage.c | 0
boards.cfg | 4 ++--
common/exports.c | 2 +-
doc/{README-i386 => README-x86} | 2 +-
examples/standalone/stubs.c | 4 ++--
include/common.h | 6 +++---
include/configs/eNET.h | 1 -
include/exports.h | 2 +-
74 files changed, 27 insertions(+), 28 deletions(-)
rename arch/{i386 => x86}/config.mk (100%)
rename arch/{i386 => x86}/cpu/Makefile (100%)
rename arch/{i386 => x86}/cpu/config.mk (94%)
rename arch/{i386 => x86}/cpu/cpu.c (98%)
rename arch/{i386 => x86}/cpu/interrupts.c (100%)
rename arch/{i386 => x86}/cpu/resetvec.S (97%)
rename arch/{i386 => x86}/cpu/sc520/Makefile (100%)
rename arch/{i386 => x86}/cpu/sc520/sc520.c (100%)
rename arch/{i386 => x86}/cpu/sc520/sc520_car.S (100%)
rename arch/{i386 => x86}/cpu/sc520/sc520_pci.c (100%)
rename arch/{i386 => x86}/cpu/sc520/sc520_sdram.c (100%)
rename arch/{i386 => x86}/cpu/sc520/sc520_ssi.c (100%)
rename arch/{i386 => x86}/cpu/sc520/sc520_timer.c (100%)
rename arch/{i386 => x86}/cpu/start.S (97%)
rename arch/{i386 => x86}/cpu/start16.S (98%)
rename arch/{i386 => x86}/cpu/u-boot.lds (100%)
rename arch/{i386 => x86}/include/asm/bitops.h (100%)
rename arch/{i386 => x86}/include/asm/bootparam.h (100%)
rename arch/{i386 => x86}/include/asm/byteorder.h (100%)
rename arch/{i386 => x86}/include/asm/config.h (100%)
rename arch/{i386 => x86}/include/asm/e820.h (100%)
rename arch/{i386 => x86}/include/asm/errno.h (100%)
rename arch/{i386 => x86}/include/asm/global_data.h (100%)
rename arch/{i386 => x86}/include/asm/i8254.h (100%)
rename arch/{i386 => x86}/include/asm/i8259.h (100%)
rename arch/{i386 => x86}/include/asm/ibmpc.h (100%)
rename arch/{i386 => x86}/include/asm/ic/pci.h (100%)
rename arch/{i386 => x86}/include/asm/ic/sc520.h (100%)
rename arch/{i386 => x86}/include/asm/ic/ssi.h (100%)
rename arch/{i386 => x86}/include/asm/interrupt.h (95%)
rename arch/{i386 => x86}/include/asm/io.h (100%)
rename arch/{i386 => x86}/include/asm/ioctl.h (100%)
rename arch/{i386 => x86}/include/asm/ist.h (100%)
rename arch/{i386 => x86}/include/asm/pci.h (100%)
rename arch/{i386 => x86}/include/asm/posix_types.h (100%)
rename arch/{i386 => x86}/include/asm/processor-flags.h (100%)
rename arch/{i386 => x86}/include/asm/processor.h (100%)
rename arch/{i386 => x86}/include/asm/ptrace.h (100%)
rename arch/{i386 => x86}/include/asm/realmode.h (100%)
rename arch/{i386 => x86}/include/asm/string.h (100%)
rename arch/{i386 => x86}/include/asm/types.h (100%)
rename arch/{i386/include/asm/u-boot-i386.h => x86/include/asm/u-boot-x86.h} (93%)
rename arch/{i386 => x86}/include/asm/u-boot.h (100%)
rename arch/{i386 => x86}/include/asm/unaligned.h (100%)
rename arch/{i386 => x86}/include/asm/video/edid.h (100%)
rename arch/{i386 => x86}/include/asm/zimage.h (100%)
rename arch/{i386 => x86}/lib/Makefile (100%)
rename arch/{i386 => x86}/lib/bios.S (100%)
rename arch/{i386 => x86}/lib/bios.h (100%)
rename arch/{i386 => x86}/lib/bios_pci.S (100%)
rename arch/{i386 => x86}/lib/bios_setup.c (100%)
rename arch/{i386 => x86}/lib/board.c (99%)
rename arch/{i386 => x86}/lib/bootm.c (100%)
rename arch/{i386 => x86}/lib/interrupts.c (100%)
rename arch/{i386 => x86}/lib/pcat_interrupts.c (100%)
rename arch/{i386 => x86}/lib/pcat_timer.c (100%)
rename arch/{i386 => x86}/lib/pci.c (100%)
rename arch/{i386 => x86}/lib/pci_type1.c (100%)
rename arch/{i386 => x86}/lib/realmode.c (100%)
rename arch/{i386 => x86}/lib/realmode_switch.S (100%)
rename arch/{i386 => x86}/lib/timer.c (100%)
rename arch/{i386 => x86}/lib/video.c (100%)
rename arch/{i386 => x86}/lib/video_bios.c (100%)
rename arch/{i386 => x86}/lib/zimage.c (100%)
rename doc/{README-i386 => README-x86} (97%)MAKEALL +2 -2
@@ -544,10 +544,10 @@ LIST_mips_el=" \ " ######################################################################### -## i386 Systems +## x86 Systems ######################################################################### -LIST_x86="$(boards_by_arch i386)" +LIST_x86="$(boards_by_arch x86)" ######################################################################### ## Nios-II Systems
Makefile +2 -2
@@ -34,7 +34,7 @@ TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h VERSION_FILE = $(obj)include/version_autogenerated.h HOSTARCH := $(shell uname -m | \ - sed -e s/i.86/i386/ \ + sed -e s/i.86/x86/ \ -e s/sun4u/sparc64/ \ -e s/arm.*/arm/ \ -e s/sa110/arm/ \
@@ -167,7 +167,7 @@ include $(TOPDIR)/config.mk # U-Boot objects....order is important (i.e. start must be first) OBJS = $(CPUDIR)/start.o -ifeq ($(CPU),i386) +ifeq ($(CPU),x86) OBJS += $(CPUDIR)/start16.o OBJS += $(CPUDIR)/resetvec.o endif
README +1 -1
@@ -164,7 +164,7 @@ Directory Hierarchy: /blackfin Files generic to Analog Devices Blackfin architecture /cpu CPU specific files /lib Architecture specific library files - /i386 Files generic to i386 architecture + /x86 Files generic to x86 architecture /cpu CPU specific files /lib Architecture specific library files /m68k Files generic to m68k architecture
arch/x86/config.mk renamed from arch/i386/config.mk +0 -0
arch/x86/cpu/Makefile renamed from arch/i386/cpu/Makefile +0 -0
arch/x86/cpu/config.mk renamed from arch/i386/cpu/config.mk +1 -1
@@ -23,7 +23,7 @@ CROSS_COMPILE ?= i386-linux- -PLATFORM_CPPFLAGS += -DCONFIG_I386 -D__I386__ -march=i386 -Werror +PLATFORM_CPPFLAGS += -DCONFIG_X86 -D__I386__ -march=i386 -Werror # DO NOT MODIFY THE FOLLOWING UNLESS YOU REALLY KNOW WHAT YOU ARE DOING! LDPPFLAGS += -DRESET_SEG_START=0xffff0000
arch/x86/cpu/cpu.c renamed from arch/i386/cpu/cpu.c +1 -1
@@ -149,7 +149,7 @@ asm(".globl generate_gpf\n"void __reset_cpu (ulong addr) { -printf ("Resetting using i386 Triple Fault\n" ); +printf ("Resetting using x86 Triple Fault\n" );set_vector (13 , generate_gpf);/* general protection fault handler */ set_vector (8 , generate_gpf);/* double fault handler */ generate_gpf ();/* start the show */
arch/x86/cpu/interrupts.c renamed from arch/i386/cpu/interrupts.c +0 -0
arch/x86/cpu/resetvec.S renamed from arch/i386/cpu/resetvec.S +1 -1
@@ -1,5 +1,5 @@ /* - * U-boot - i386 Startup Code + * U-boot - x86 Startup Code * * (C) Copyright 2002 * Daniel Engstr?m, Omicron Ceti AB, <[email protected]>
arch/x86/cpu/sc520/Makefile renamed from arch/i386/cpu/sc520/Makefile +0 -0
arch/x86/cpu/sc520/sc520.c renamed from arch/i386/cpu/sc520/sc520.c +0 -0
arch/x86/cpu/sc520/sc520_car.S renamed from arch/i386/cpu/sc520/sc520_car.S +0 -0
arch/x86/cpu/sc520/sc520_pci.c renamed from arch/i386/cpu/sc520/sc520_pci.c +0 -0
arch/x86/cpu/sc520/sc520_sdram.c renamed from arch/i386/cpu/sc520/sc520_sdram.c +0 -0
arch/x86/cpu/sc520/sc520_ssi.c renamed from arch/i386/cpu/sc520/sc520_ssi.c +0 -0
arch/x86/cpu/sc520/sc520_timer.c renamed from arch/i386/cpu/sc520/sc520_timer.c +0 -0
arch/x86/cpu/start.S renamed from arch/i386/cpu/start.S +3 -3
@@ -1,5 +1,5 @@ /* - * U-boot - i386 Startup Code + * U-boot - x86 Startup Code * * (C) Copyright 2008-2011 * Graeme Russ, <[email protected]>
@@ -35,8 +35,8 @@ .code32 .globl _start .type _start, @function -.globl _i386boot_start -_i386boot_start: +.globl _x86boot_start +_x86boot_start: /* * This is the fail safe 32-bit bootstrap entry point. The * following code is not executed from a cold-reset (actually, a
arch/x86/cpu/start16.S renamed from arch/i386/cpu/start16.S +1 -1
@@ -1,5 +1,5 @@ /* - * U-boot - i386 Startup Code + * U-boot - x86 Startup Code * * (C) Copyright 2008-2011 * Graeme Russ, <[email protected]>
arch/x86/cpu/u-boot.lds renamed from arch/i386/cpu/u-boot.lds +0 -0
arch/x86/include/asm/bitops.h renamed from arch/i386/include/asm/bitops.h +0 -0
arch/x86/include/asm/bootparam.h renamed from arch/i386/include/asm/bootparam.h +0 -0
arch/x86/include/asm/byteorder.h renamed from arch/i386/include/asm/byteorder.h +0 -0
arch/x86/include/asm/config.h renamed from arch/i386/include/asm/config.h +0 -0
arch/x86/include/asm/e820.h renamed from arch/i386/include/asm/e820.h +0 -0
arch/x86/include/asm/errno.h renamed from arch/i386/include/asm/errno.h +0 -0
arch/x86/include/asm/global_data.h renamed from arch/i386/include/asm/global_data.h +0 -0
arch/x86/include/asm/i8254.h renamed from arch/i386/include/asm/i8254.h +0 -0
arch/x86/include/asm/i8259.h renamed from arch/i386/include/asm/i8259.h +0 -0
arch/x86/include/asm/ibmpc.h renamed from arch/i386/include/asm/ibmpc.h +0 -0
arch/x86/include/asm/ic/pci.h renamed from arch/i386/include/asm/ic/pci.h +0 -0
arch/x86/include/asm/ic/sc520.h renamed from arch/i386/include/asm/ic/sc520.h +0 -0
arch/x86/include/asm/ic/ssi.h renamed from arch/i386/include/asm/ic/ssi.h +0 -0
arch/x86/include/asm/interrupt.h renamed from arch/i386/include/asm/interrupt.h +2 -2
@@ -29,10 +29,10 @@#include <asm/types.h> -/* arch/i386/cpu/interrupts.c */ +/* arch/x86/cpu/interrupts.c */ void set_vector (u8 intnum,void *routine); -/* arch/i386/lib/interupts.c */ +/* arch/x86/lib/interupts.c */ void disable_irq (int irq);void enable_irq (int irq);
arch/x86/include/asm/io.h renamed from arch/i386/include/asm/io.h +0 -0
arch/x86/include/asm/ioctl.h renamed from arch/i386/include/asm/ioctl.h +0 -0
arch/x86/include/asm/ist.h renamed from arch/i386/include/asm/ist.h +0 -0
arch/x86/include/asm/pci.h renamed from arch/i386/include/asm/pci.h +0 -0
arch/x86/include/asm/posix_types.h renamed from arch/i386/include/asm/posix_types.h +0 -0
arch/x86/include/asm/processor-flags.h renamed from arch/i386/include/asm/processor-flags.h +0 -0
arch/x86/include/asm/processor.h renamed from arch/i386/include/asm/processor.h +0 -0
arch/x86/include/asm/ptrace.h renamed from arch/i386/include/asm/ptrace.h +0 -0
arch/x86/include/asm/realmode.h renamed from arch/i386/include/asm/realmode.h +0 -0
arch/x86/include/asm/string.h renamed from arch/i386/include/asm/string.h +0 -0
arch/x86/include/asm/types.h renamed from arch/i386/include/asm/types.h +0 -0
arch/x86/include/asm/u-boot-x86.h renamed from arch/i386/include/asm/u-boot-i386.h +2 -2
@@ -35,7 +35,7 @@ void timer_isr(void *);typedef void (timer_fnc_t ) (void );int register_timer_isr (timer_fnc_t *isr_func); -/* Architecture specific - can be in arch/i386/cpu/, arch/i386/lib/, or $(BOARD)/ */ +/* Architecture specific - can be in arch/x86/cpu/, arch/x86/lib/, or $(BOARD)/ */ int timer_init (void );int dram_init_f (void );
@@ -51,7 +51,7 @@ void setup_pcat_compatibility(void);void isa_unmap_rom (u32 addr);u32 isa_map_rom (u32 bus_addr,int size); -/* arch/i386/lib/... */ +/* arch/x86/lib/... */ int video_bios_init (void );int video_init (void );
arch/x86/include/asm/u-boot.h renamed from arch/i386/include/asm/u-boot.h +0 -0
arch/x86/include/asm/unaligned.h renamed from arch/i386/include/asm/unaligned.h +0 -0
arch/x86/include/asm/video/edid.h renamed from arch/i386/include/asm/video/edid.h +0 -0
arch/x86/include/asm/zimage.h renamed from arch/i386/include/asm/zimage.h +0 -0
arch/x86/lib/Makefile renamed from arch/i386/lib/Makefile +0 -0
arch/x86/lib/bios.S renamed from arch/i386/lib/bios.S +0 -0
arch/x86/lib/bios.h renamed from arch/i386/lib/bios.h +0 -0
arch/x86/lib/bios_pci.S renamed from arch/i386/lib/bios_pci.S +0 -0
arch/x86/lib/bios_setup.c renamed from arch/i386/lib/bios_setup.c +0 -0
arch/x86/lib/board.c renamed from arch/i386/lib/board.c +1 -1
@@ -41,7 +41,7 @@#include <net.h> #include <ide.h> #include <serial.h> -#include <asm/u-boot-i386.h> +#include <asm/u-boot-x86.h> #include <elf.h> #ifdef CONFIG_BITBANGMII
arch/x86/lib/bootm.c renamed from arch/i386/lib/bootm.c +0 -0
arch/x86/lib/interrupts.c renamed from arch/i386/lib/interrupts.c +0 -0
arch/x86/lib/pcat_interrupts.c renamed from arch/i386/lib/pcat_interrupts.c +0 -0
arch/x86/lib/pcat_timer.c renamed from arch/i386/lib/pcat_timer.c +0 -0
arch/x86/lib/pci.c renamed from arch/i386/lib/pci.c +0 -0
arch/x86/lib/pci_type1.c renamed from arch/i386/lib/pci_type1.c +0 -0
arch/x86/lib/realmode.c renamed from arch/i386/lib/realmode.c +0 -0
arch/x86/lib/realmode_switch.S renamed from arch/i386/lib/realmode_switch.S +0 -0
arch/x86/lib/timer.c renamed from arch/i386/lib/timer.c +0 -0
arch/x86/lib/video.c renamed from arch/i386/lib/video.c +0 -0
arch/x86/lib/video_bios.c renamed from arch/i386/lib/video_bios.c +0 -0
arch/x86/lib/zimage.c renamed from arch/i386/lib/zimage.c +0 -0
boards.cfg +2 -2
@@ -202,8 +202,8 @@ ibf-dsp561 blackfin blackfin ip04 blackfin blackfin tcm-bf518 blackfin blackfin tcm-bf537 blackfin blackfin -eNET i386 i386 eNET - sc520 eNET:SYS_TEXT_BASE=0x38040000 -eNET_SRAM i386 i386 eNET - sc520 eNET:SYS_TEXT_BASE=0x19000000 +eNET x86 x86 eNET - sc520 eNET:SYS_TEXT_BASE=0x38040000 +eNET_SRAM x86 x86 eNET - sc520 eNET:SYS_TEXT_BASE=0x19000000 idmr m68k mcf52x2 TASREG m68k mcf52x2 tasreg esd M5208EVBE m68k mcf52x2 m5208evbe freescale
common/exports.c +1 -1
@@ -15,7 +15,7 @@ unsigned long get_version(void)/* Reuse _exports.h with a little trickery to avoid bitrot */ #define EXPORT_FUNC (sym) gd->jt[XF_##sym] = (void *)sym; -#if !defined(CONFIG_I386 ) && !defined(CONFIG_PPC ) +#if !defined(CONFIG_X86 ) && !defined(CONFIG_PPC )# define install_hdlr dummy# define free_hdlr dummy#else /* kludge for non-standard function naming */
doc/README-x86 renamed from doc/README-i386 +1 -1
@@ -1,4 +1,4 @@ -This is my attempt to port U-Boot to the i386 platform. This +This is my attempt to port U-Boot to the x86 platform. This work was sponsored by my emplyer, Omicron Ceti AB. http://www.omicron.se It is currently capable of booting a linux bzImage from flash on
examples/standalone/stubs.c +2 -2
@@ -4,7 +4,7 @@#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)#endif /* GCC_VERSION */ -#if defined(CONFIG_I386 ) +#if defined(CONFIG_X86 )/* * x86 does not have a dedicated register to store the pointer to * the global_data. Thus the jump table address is stored in a
@@ -198,7 +198,7 @@ void app_startup(char * const *argv) *cp++ =0 ; } -#if defined(CONFIG_I386 ) +#if defined(CONFIG_X86 )/* x86 does not have a dedicated register for passing global_data */ global_data = (gd_t *)argv[-1 ]; jt = global_data->jt;
include/common.h +3 -3
@@ -270,9 +270,9 @@ int setenv (char *, char *);# include <asm/setup.h> # include <asm/u-boot-arm.h> /* ARM version to be fixed! */ #endif /* CONFIG_ARM */ -#ifdef CONFIG_I386 /* x86 version to be fixed! */ -# include <asm/u-boot-i386.h> -#endif /* CONFIG_I386 */ +#ifdef CONFIG_X86 /* x86 version to be fixed! */ +# include <asm/u-boot-x86.h> +#endif /* CONFIG_X86 */ #ifdef CONFIG_AUTO_COMPLETE int env_complete (char *var,int maxv,char *cmdv[],int maxsz,char *buf);
include/configs/eNET.h +0 -1
@@ -33,7 +33,6 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_X86 #define CONFIG_SYS_SC520 #define CONFIG_SYS_SC520_SSI #define CONFIG_SHOW_BOOT_PROGRESS
include/exports.h +1 -1
@@ -45,7 +45,7 @@ enum {#define XF_VERSION 6 -#if defined(CONFIG_I386 ) +#if defined(CONFIG_X86 )extern gd_t *global_data;#endif
Signature · 1 line
1.7.1.422.g049e9
PATCH 4/6 x86: Rename i386 to x86
Quoted 69 lines · Graeme Russ
Signed-off-by Graeme Russ <[email protected]>--- MAKEALL | 4 ++-- Makefile | 4 ++-- README | 2 +- arch/{i386 => x86}/config.mk | 0 arch/{i386 => x86}/cpu/Makefile | 0 arch/{i386 => x86}/cpu/config.mk | 2 +- arch/{i386 => x86}/cpu/cpu.c | 2 +- arch/{i386 => x86}/cpu/interrupts.c | 0 arch/{i386 => x86}/cpu/resetvec.S | 2 +- arch/{i386 => x86}/cpu/sc520/Makefile | 0 arch/{i386 => x86}/cpu/sc520/sc520.c | 0 arch/{i386 => x86}/cpu/sc520/sc520_car.S | 0 arch/{i386 => x86}/cpu/sc520/sc520_pci.c | 0 arch/{i386 => x86}/cpu/sc520/sc520_sdram.c | 0 arch/{i386 => x86}/cpu/sc520/sc520_ssi.c | 0 arch/{i386 => x86}/cpu/sc520/sc520_timer.c | 0 arch/{i386 => x86}/cpu/start.S | 6 +++--- arch/{i386 => x86}/cpu/start16.S | 2 +- arch/{i386 => x86}/cpu/u-boot.lds | 0 arch/{i386 => x86}/include/asm/bitops.h | 0 arch/{i386 => x86}/include/asm/bootparam.h | 0 arch/{i386 => x86}/include/asm/byteorder.h | 0 arch/{i386 => x86}/include/asm/config.h | 0 arch/{i386 => x86}/include/asm/e820.h | 0 arch/{i386 => x86}/include/asm/errno.h | 0 arch/{i386 => x86}/include/asm/global_data.h | 0 arch/{i386 => x86}/include/asm/i8254.h | 0 arch/{i386 => x86}/include/asm/i8259.h | 0 arch/{i386 => x86}/include/asm/ibmpc.h | 0 arch/{i386 => x86}/include/asm/ic/pci.h | 0 arch/{i386 => x86}/include/asm/ic/sc520.h | 0 arch/{i386 => x86}/include/asm/ic/ssi.h | 0 arch/{i386 => x86}/include/asm/interrupt.h | 4 ++-- arch/{i386 => x86}/include/asm/io.h | 0 arch/{i386 => x86}/include/asm/ioctl.h | 0 arch/{i386 => x86}/include/asm/ist.h | 0 arch/{i386 => x86}/include/asm/pci.h | 0 arch/{i386 => x86}/include/asm/posix_types.h | 0 arch/{i386 => x86}/include/asm/processor-flags.h | 0 arch/{i386 => x86}/include/asm/processor.h | 0 arch/{i386 => x86}/include/asm/ptrace.h | 0 arch/{i386 => x86}/include/asm/realmode.h | 0 arch/{i386 => x86}/include/asm/string.h | 0 arch/{i386 => x86}/include/asm/types.h | 0 .../u-boot-i386.h => x86/include/asm/u-boot-x86.h} | 4 ++-- arch/{i386 => x86}/include/asm/u-boot.h | 0 arch/{i386 => x86}/include/asm/unaligned.h | 0 arch/{i386 => x86}/include/asm/video/edid.h | 0 arch/{i386 => x86}/include/asm/zimage.h | 0 arch/{i386 => x86}/lib/Makefile | 0 arch/{i386 => x86}/lib/bios.S | 0 arch/{i386 => x86}/lib/bios.h | 0 arch/{i386 => x86}/lib/bios_pci.S | 0 arch/{i386 => x86}/lib/bios_setup.c | 0 arch/{i386 => x86}/lib/board.c | 2 +- arch/{i386 => x86}/lib/bootm.c | 0 arch/{i386 => x86}/lib/interrupts.c | 0 arch/{i386 => x86}/lib/pcat_interrupts.c | 0 arch/{i386 => x86}/lib/pcat_timer.c | 0 arch/{i386 => x86}/lib/pci.c | 0 arch/{i386 => x86}/lib/pci_type1.c | 0 arch/{i386 => x86}/lib/realmode.c | 0 arch/{i386 => x86}/lib/realmode_switch.S | 0 arch/{i386 => x86}/lib/timer.c | 0 arch/{i386 => x86}/lib/video.c | 0 arch/{i386 => x86}/lib/video_bios.c | 0 arch/{i386 => x86}/lib/zimage.c | 0
Quoted 8 lines
boards.cfg | 4 ++--
common/exports.c | 2 +-
doc/{README-i386 => README-x86} | 2 +-
examples/standalone/stubs.c | 4 ++--
include/common.h | 6 +++---
include/configs/eNET.h | 1 -
include/exports.h | 2 +-
74 files changed, 27 insertions(+), 28 deletions(-)Applied to u-boot-x86, master branch, thanks.
Regards,
Graeme Russ
PATCH 5/6 sc520: Move reset to stand-alone file
In reply to Graeme RussPartial linking allows weak functions to be overridden in files containing only one function. Moving the sc520 override of reset_cpu gets rid of an ugly #ifdef
--- arch/x86/cpu/sc520/Makefile | 1 + arch/x86/cpu/sc520/sc520.c | 10 --------- arch/x86/cpu/sc520/sc520_reset.c | 40 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 arch/x86/cpu/sc520/sc520_reset.c
arch/x86/cpu/sc520/Makefile +1 -0
@@ -33,6 +33,7 @@ LIB := $(obj)lib$(SOC).o COBJS-$(CONFIG_SYS_SC520) += sc520.o COBJS-$(CONFIG_PCI) += sc520_pci.o +COBJS-$(CONFIG_SYS_SC520_RESET) += sc520_reset.o COBJS-$(CONFIG_SYS_SC520) += sc520_sdram.o COBJS-$(CONFIG_SYS_SC520_SSI) += sc520_ssi.o COBJS-$(CONFIG_SYS_SC520_TIMER) += sc520_timer.o
arch/x86/cpu/sc520/sc520.c +0 -10
@@ -65,13 +65,3 @@ int cpu_init_r(void)return x86_cpu_init_r (); } -#ifdef CONFIG_SYS_SC520_RESET -void reset_cpu (ulong addr) -{ -printf ("Resetting using SC520 MMCR\n" ); -/* Write a '1' to the SYS_RST of the RESCFG MMCR */ -writeb (0x01 , &sc520_mmcr->rescfg); - -/* NOTREACHED */ -} -#endif
arch/x86/cpu/sc520/sc520_reset.c new file +40 -0
@@ -0,0 +1,40 @@ +/* +* (C) Copyright 2011 +* Graeme Russ, <[email protected]> +* +* (C) Copyright 2002 +* Daniel Engstr?m, Omicron Ceti AB, <[email protected]> +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <asm/io.h> +#include <asm/ic/sc520.h> + +DECLARE_GLOBAL_DATA_PTR ; + +void reset_cpu (ulong addr) +{ +printf ("Resetting using SC520 MMCR\n" ); +/* Write a '1' to the SYS_RST of the RESCFG MMCR */ +writeb (0x01 , &sc520_mmcr->rescfg); + +/* NOTREACHED */ +}
Signature · 1 line
1.7.1.422.g049e9
PATCH 5/6 sc520: Move reset to stand-alone file
Quoted 11 lines · Graeme Russ
Partial linking allows weak functions to be overridden in files containing only one function. Moving the sc520 override of
reset_cpugets rid of an ugly #ifdefSigned-off-by Graeme Russ <[email protected]>--- arch/x86/cpu/sc520/Makefile | 1 + arch/x86/cpu/sc520/sc520.c | 10 --------- arch/x86/cpu/sc520/sc520_reset.c | 40 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 arch/x86/cpu/sc520/sc520_reset.c
Applied to u-boot-x86, master branch, thanks.
Regards,
Graeme Russ
PATCH 6/6 x86: Update MAINTAINERS and delete README files
In reply to Graeme RussThe README files are totally out-of-date to the point where they do more harm than good
--- MAINTAINERS | 4 +- doc/README-x86 | 74 -------------------------------------------------------- doc/TODO-i386 | 29 ---------------------- 3 files changed, 2 insertions(+), 105 deletions(-) delete mode 100644 doc/README-x86 delete mode 100644 doc/TODO-i386
MAINTAINERS +2 -2
@@ -905,9 +905,9 @@ Unknown / orphaned boards: # Board CPU # ######################################################################### -Daniel Engstr?m <[email protected]> +Graeme Russ <[email protected]> - sc520_cdp x86 + eNET AMD SC520 ######################################################################### # MIPS Systems: #
doc/README-x86 deleted +0 -74
74 lines not on this page · raw message
doc/TODO-i386 deleted +0 -29
@@ -1,29 +0,0 @@ -i386 port missing features: -* i386 cleaness (wbinvld is 486+ ... ) -* Pentium TSC timer/udelay -* setup the BIOS data area and BIOS equipment word to reflect machine config. -* Make reset work (from Linux and from the boot prompt) -* DMA, FDC, RTC, KBC initialization -* split of part of arch/i386/cpu/interrupt.c to cpu/i385/entry.c? -* re-entry of protected mode from real mode, should be added to realmode_switch.S - (and used by INT 10h and INT 16h handlers for console I/O during early - linux boot...) -* missing functions in arch/i386/lib and arch/i386/cpu -* speaker beep interface - - -SC520 missing features: -* Watchdog -* SC520 timer/udelay -* SC520 3rd PIC -* SC520 ICE serial -* SC520 MMCR reset - -SC520 CDP board support missing features: -* environment in sram - -SC520 CDP board support bugs: -* SPI EEPROM support does not work -* 0x680 LEDS dos not work for me -* is it possible to make both the internal serial ports and the - ports on the sio work at the same time?
Signature · 1 line
1.7.1.422.g049e9
PATCH 6/6 x86: Update MAINTAINERS and delete README files
Quoted 11 lines · Graeme Russ
The README files are totally out-of-date to the point where they do more harm than good
Signed-off-by Graeme Russ <[email protected]>--- MAINTAINERS | 4 +- doc/README-x86 | 74 -------------------------------------------------------- doc/TODO-i386 | 29 ---------------------- 3 files changed, 2 insertions(+), 105 deletions(-) delete mode 100644 doc/README-x86 delete mode 100644 doc/TODO-i386
Applied to u-boot-x86, master branch, thanks.
Regards,
Graeme Russ