aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386
AgeCommit message (Collapse)AuthorFilesLines
2011-02-12sc520: Release CAR and enable cachingGraeme Russ1-5/+11
2011-02-12x86: Convert board_init_f to use an init_sequenceGraeme Russ1-41/+29
2011-02-12x86: Rearrange function calls in board_init_fGraeme Russ1-8/+8
2011-02-12x86: Split board_init_f() into init_fnc_t compatible functionsGraeme Russ2-49/+74
2011-02-12x86: Fix incorrect usage of relocation offsetGraeme Russ2-6/+6
x86 has always used relocation offset in the opposite sense to the ELF standard - Fix this
2011-02-12x86: Move console initialisation into board_init_fGraeme Russ1-3/+12
2011-02-12x86: Move test for cold boot into init functionsGraeme Russ2-13/+11
2011-02-12x86: Move call to dram_init_f into board_init_fGraeme Russ3-3/+4
2011-02-12x86: Defer setup of final stackGraeme Russ2-17/+33
2011-02-12sc520: Move RAM sizing code from asm to CGraeme Russ7-755/+610
2011-02-12x86: Use Cache-As-RAM for initial stackGraeme Russ4-21/+115
2011-02-12x86: Move initial gd to fixed locationGraeme Russ3-19/+36
2011-02-12sc520: Remove printf calls from cpu_init_fGraeme Russ1-2/+0
In later patches, cpu_init_f will be called before console has been initialised and printf will not be legitimately available
2011-02-12sc520: Move board specific settings to board init functionGraeme Russ1-19/+0
2011-02-12sc520: Define MMCR address in include fileGraeme Russ3-36/+51
2011-02-12x86: Make cpu init functions weakGraeme Russ3-10/+17
2011-02-12x86: Call early_board_init when warm bootingGraeme Russ1-5/+5
early_board_init has been skipped to avoid SDRAM corruption in the case that a fully relocatable image has been loaded into SDRAM and is being executed from SDRAM. x86 is being aligned with other architectures (ARM and PPC in particlar) and will be using Cache-As-RAM to run a C environment from Flash (or SRAM if you have some). early_board_init may be needed to assist in the setup of Cache-As-RAM and the early C environment
2011-02-12x86: Add processor flags header from linuxGraeme Russ6-10/+121
2011-02-12x86: Move Global Descriptor Table defines to processor.hGraeme Russ2-10/+7
2011-02-12x86: Add stack dump to register dumpGraeme Russ1-0/+16
2011-02-12x86: Fix mangled umlautsGraeme Russ2-2/+2
git mergetool has a nasty habit of mangling umlats - fix ones that have been missed in previous submissions
2011-02-12sc520: Sort MakefileGraeme Russ1-1/+1
2011-02-12x86: Parametize values used in linker scriptGraeme Russ4-20/+19
2011-02-12x86: Align config.mk and linker scripts with other archesGraeme Russ3-8/+114
2011-02-12x86: Fix definition of global_data struct for asm-offsets.cGraeme Russ1-1/+1
2011-01-25Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGSNobuhiro Iwamatsu1-1/+2
Linker needs to use the proper endian/bfd flags even when doing partial linking. LDFLAGS_u-boot sets linker option which is called it when U-boot is built (u-boot final). LDFLAGS sets necessary option by partial linking (use in cmd_link_o_target). CC: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2010-11-17Switch from archive libraries to partial linkingSebastien Carlier3-6/+6
Before this commit, weak symbols were not overridden by non-weak symbols found in archive libraries when linking with recent versions of binutils. As stated in the System V ABI, "the link editor does not extract archive members to resolve undefined weak symbols". This commit changes all Makefiles to use partial linking (ld -r) instead of creating library archives, which forces all symbols to participate in linking, allowing non-weak symbols to override weak symbols as intended. This approach is also used by Linux, from which the gmake function cmd_link_o_target (defined in config.mk and used in all Makefiles) is inspired. The name of each former library archive is preserved except for extensions which change from ".a" to ".o". This commit updates references accordingly where needed, in particular in some linker scripts. This commit reveals board configurations that exclude some features but include source files that depend these disabled features in the build, resulting in undefined symbols. Known such cases include: - disabling CMD_NET but not CMD_NFS; - enabling CONFIG_OF_LIBFDT but not CONFIG_QE. Signed-off-by: Sebastien Carlier <sebastien.carlier@gmail.com>
2010-10-29Replace CONFIG_RELOC_FIXUP_WORKS by CONFIG_NEEDS_MANUAL_RELOCWolfgang Denk1-2/+0
By now, the majority of architectures have working relocation support, so the few remaining architectures have become exceptions. To make this more obvious, we make working relocation now the default case, and flag the remaining cases with CONFIG_NEEDS_MANUAL_RELOC. Signed-off-by: Wolfgang Denk <wd@denx.de> Tested-by: Heiko Schocher <hs@denx.de> Tested-by: Reinhard Meyer <u-boot@emk-elektronik.de>
2010-10-26Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated valueWolfgang Denk1-1/+1
CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not being able to use "sizeof(struct global_data)" in assembler files. Recent experience has shown that manual synchronization is not reliable enough. This patch renames CONFIG_SYS_GBL_DATA_SIZE into GENERATED_GBL_DATA_SIZE which gets automatically generated by the asm-offsets tool. In the result, all definitions of this value can be deleted from the board config files. We have to make sure that all files that reference such data include the new <asm-offsets.h> file. No other changes have been done yet, but it is obvious that similar changes / simplifications can be done for other, related macro definitions as well. Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Kumar Gala <galak@kernel.crashing.org>
2010-10-18Rename TEXT_BASE into CONFIG_SYS_TEXT_BASEWolfgang Denk1-2/+2
The change is currently needed to be able to remove the board configuration scripting from the top level Makefile and replace it by a simple, table driven script. Moving this configuration setting into the "CONFIG_*" name space is also desirable because it is needed if we ever should move forward to a Kconfig driven configuration system. Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-10-07x86: Implement fully relocatable imageGraeme Russ3-24/+35
u-boot.bin can be loaded at any 4-byte aligned memory location and directly 'jumped' to using the 'go' command using the load address as the start address. Doing so performs a 'warm boot' which skips memory initialisation and other low-level initialisations, relocates U-Boot to upper memory and starts U-Boot in RAM as per normal 'cold boot'
2010-10-07x86: Use loops instead of memcpy/memset in board_init_fGraeme Russ1-16/+31
Provides a small speed increase and prepares for fully relocatable image. Downside is the TEXT_BASE, bss, load address etc must ALL be aligned on a a 4-byte boundary which is not such a terrible restriction as everything is already 4-byte aligned anyway
2010-10-07x86: Rearrange linker scriptGraeme Russ1-2/+3
Tidy up the linker script and discard some sections to save space
2010-10-07x86: Rename linker script symbolsGraeme Russ3-24/+24
Create more generic names for the symbols exported from the linker script
2010-10-07x86: Set cold/warm boot flagGraeme Russ3-16/+13
2010-10-07x86: Place global data below stack before entering CGraeme Russ3-37/+37
By reserving space for the Global Data immediately below the stack during assembly level initialisation, the C declaration of the static global data can be removed, along with the 'RAM Bootstrap' function. This results in cleaner code, and the ability to pass boot-up flags from assembler into C
2010-10-07x86: Dont clobber %eax after getting memory sizeGraeme Russ1-3/+2
By using another register, reduce code size by one instruction
2010-10-07x86: Don't clobber %ebxGraeme Russ2-7/+12
%ebx will hold low-level boot flags and must be preserved
2010-10-07x86: Remove usage of %ebp as a return pointerGraeme Russ3-10/+10
Using %ebp as a return pointer prevents creating 'load anywhere' images
2010-10-07x86: Move ECC initialisation outside RAM initialisationGraeme Russ2-14/+14
To allow for 'load anywhere' images, the %ebp return pointer 'hack' must be removed, so we cannot have two 'calls' to get_mem_size
2010-10-07x86: Remove progress indication in low-level initGraeme Russ1-42/+2
Progress indication is not relocation friendly so remove it in preperation for full relocatability support
2010-10-07x86: Fix %ss and %esp in register structure for interruptsGraeme Russ3-4/+45
2010-10-07x86: Change compiler optionsGraeme Russ4-17/+12
Change to: - reparam=3 - no-from-pointer - no-stack-protector - preferred-stack-boundary=2 - no-top-level-reorder These options make the code a little smaller and faster
2010-10-07x86: Coding Style CleanupGraeme Russ4-373/+362
Perform some basic code cleanups of the x86 files
2010-10-07x86: Move loading of GTD to C codeGraeme Russ2-96/+57
Linux has C macros and code to load the GTD after switching to Protected Mode. Using these greatly simplifies the assembler code
2010-10-07x86: use gc sections to reduce image sizeGraeme Russ1-0/+3
Follow the discussion of Charles Manning and Mike Frysinger. Using gc_sections helps reduce image size.
2010-10-07x86: zboot updateGraeme Russ1-5/+13
The header of recent Linux Kernels includes the size of the image, and therefore is not needed to be passed to zboot. Still process the third parameter (size of image) in the event that an older kernel is being loaded
2010-10-07x86: Make CONFIG_RELOC_FIXUP_WORKS generic for all x86 boardsGraeme Russ1-0/+2
Relocation is not board-specific for the x86 architectrure, so CONFIG_RELOC_FIXUP_WORKS can be defined globally in the config.h
2010-09-23Remove unused CONFIG_SERIAL_SOFTWARE_FIFO featureStefan Roese1-7/+0
This patch removes the completely unused CONFIG_SERIAL_SOFTWARE_FIFO feature from U-Boot. It has only been implemented for PPC4xx and was not used at all. So let's remove it and make the code smaller and cleaner. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Detlev Zundel <dzu@denx.de>
2010-09-19arm: get rid of bi_envHeiko Schocher1-4/+0
bi_env is nowhere used, so delete it! Signed-off-by: Heiko Schocher <hs@denx.de> similar patch posted from Dirk Behme Tue Jul 27 18:36:09 CEST 2010 http://lists.denx.de/pipermail/u-boot/2010-July/074542.html