summaryrefslogtreecommitdiffstats
path: root/arch/x86
Commit message (Collapse)AuthorAgeFilesLines
* Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-1/+2
| | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86 linker script: Add missing _textSascha Hauer2012-04-051-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce barebox_bare_init_size to known the bare_init size and check itJean-Christophe PLAGNIOL-VILLARD2012-01-231-0/+3
| | | | | | | | | | | this allow to check we do not exceed the size of the SRAM as example introduce BAREBOX_MAX_BARE_INIT_SIZE the maximum size of bare_init this will allow your bare_init will fit in SRAM as example ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: Fix linker script for magic varsSascha Hauer2011-12-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix malloc space sizesSascha Hauer2011-12-031-2/+2
| | | | | | end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add magicvar commandSascha Hauer2011-11-291-1/+8
| | | | | | | The magicvar command gives an overview about all environment variables with a special meaning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: fix symbol size calculationLucas De Marchi2011-11-112-5/+9
| | | | | | | | | | | | | | The size is being calculated after changing to another section, which gives error with gcc 4.6: AS arch/x86/lib/traveler.o /tmp/ccP0z8xx.s: Assembler messages: /tmp/ccP0z8xx.s: Error: .size expression for real_to_prot does not evaluate to a constant /tmp/ccP0z8xx.s: Error: .size expression for prot_to_real does not evaluate to a constant make[1]: *** [arch/x86/lib/traveler.o] Error 1 Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: fix build error because of missing headerLucas De Marchi2011-11-112-0/+16
| | | | | Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-10-231-1/+1
|\
| * Only pass -P to cpp when generating ld scriptsLoïc Minier2011-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building sandbox with ccache, one would hit warnings such as: warning: 'struct mmsghdr' declared inside parameter list on random files; a way to reproduce this issue is to build a simple file doing just: #include <sys/socket.h> int main(void) { return 0; } gcc -Wall -P -c -o foo foo.c But actually the -P flag is only useful when generating non-C files, such as linker scripts in the case of barebox. Removing the -P flag from all the gcc invocations, except when generating .lds files makes the warning go away. It turns out that this is what linux/scripts/Makefile.build also does nowadays. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | move digest to crypto/Jean-Christophe PLAGNIOL-VILLARD2011-10-121-0/+1
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: Define byteorderJuergen Beisert2011-10-041-0/+2
| | | | | | | | | | | This is required to avoid warnings like this: In file included from <some file>: include/io.h:7:5: warning: "__BYTE_ORDER" is not defined include/io.h:7:21: warning: "__BIG_ENDIAN" is not defined Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename include/mem_malloc.h to include/memory.hSascha Hauer2011-09-231-1/+1
| | | | | | | Which is a better name and also better to collect other things. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce io.hSascha Hauer2011-09-224-4/+4
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86/generic_pc: fix missing switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-151-11/+3
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ns16550: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-011-1/+1
| | | | | | | use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ns16550: if not specific f_caps defined use default stdin, stdout, stderrJean-Christophe PLAGNIOL-VILLARD2011-07-301-1/+0
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* add a ns16550 registration helper and use itSascha Hauer2011-07-291-11/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a add_mem_device functionSascha Hauer2011-07-181-14/+2
| | | | | | | | | | | Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data. And switch all of the memory to it Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLEJean-Christophe PLAGNIOL-VILLARD2011-07-181-1/+1
| | | | | | | we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* x86: fix typo in include/asm/posix_types.hAntony Pavlov2011-07-051-1/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86 Generic platform: Fix prompt nameJuergen Beisert2011-03-101-1/+1
| | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* x86 Generic platform: Fix disk drive nameJuergen Beisert2011-03-101-1/+1
| | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* x86 Generic platform: Fix some typosJuergen Beisert2011-03-101-2/+2
| | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* x86: Use the generic linker script initializingJuergen Beisert2011-03-103-15/+7
| | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* x86: Remove not used expressions from the makefileJuergen Beisert2011-03-101-5/+0
| | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* x86/pmjump: rename __bss_end to __bss_stopJean-Christophe PLAGNIOL-VILLARD2011-01-241-2/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: use sections.h header file for linker variablesSascha Hauer2011-01-172-6/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add sections.h header fileSascha Hauer2011-01-171-0/+1
| | | | | | | The file location and variable names from the Linux Kernel have been used here. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* import swab.h arch implementation form linux v2.3.37Jean-Christophe PLAGNIOL-VILLARD2011-01-171-0/+61
| | | | | | | this will avoid __bswapsi2 issue see with gcc 4.5.1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: switch mask to CLOCKSOURCE_MASKJean-Christophe PLAGNIOL-VILLARD2010-11-291-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: add 64bit host build supportJean-Christophe PLAGNIOL-VILLARD2010-11-171-1/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* doc: eliminate nonexisting referenceRobert Schwebel2010-10-221-1/+1
| | | | | | | | Silence this warning: arch/architecture.dox:89: Warning: unable to resolve reference to `dev_x86_mach' for \ref command Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* doc: let doxygen find some assembler functionsRobert Schwebel2010-10-225-11/+0
| | | | | | | | | | | | | | Silences these warnings: arch/x86/boot/boot_hdisk.S:29: Warning: documented function `void real_start' was not declared or defined. arch/x86/boot/boot_main.S:28: Warning: documented function `void _start' was not declared or defined. arch/x86/boot/pmjump.S:20: Warning: documented function `void protected_mode_jump' was not declared or defined. arch/x86/lib/memory16.S:32: Warning: documented function `unsigned short bios_get_memsize' was not declared or defined. arch/x86/lib/traveler.S:31: Warning: documented function `void real_to_prot' was not declared or defined. arch/x86/lib/traveler.S:38: Warning: documented function `void prot_to_real' was not declared or defined. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Don't try to guess the size of a disk if its size value is already givenJuergen Beisert2010-10-111-1/+1
| | | | | | | | | | | | | | | | | Guessing the size of an attached harddisk (access via x86 BIOS) was needed due to the fact, barebox can't query this information from the BIOS easily. But with the SD/MMC cards, there will be a second user of the generic disk handling routines. And with this media it is very easy to know its size. This patch provides a workaround to keep the guessing feature if the size of the registered disk is 0. If it is not 0, the given value will be used instead. Note: This is in preparation to add MCI card support, which can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: use id as -1 for auto assigned idJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+3
| | | | | | | | before if you specify id = 0 the next available id will be taken otherwise fail if already registered now as in linux we use -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* types.h: move __kernel_dev_t to include/linux/types.hJean-Christophe PLAGNIOL-VILLARD2010-09-171-1/+0
| | | | | | no need to have a arch specific type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* configs: use new savedefconfig format as in linuxJean-Christophe PLAGNIOL-VILLARD2010-09-171-155/+0
| | | | | | | this will reduce and simplify defconfigs maintainance it will also save some disk space Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* move boards to arch/<architecure>/boardsJean-Christophe PLAGNIOL-VILLARD2010-07-238-2/+247
| | | | | | | | | | | | this will allow each arch to handle the boards more simply and depending on there need the env var BOARD will refer to the current board dirent for sandbox as we have only one board the board dirent is arch/sandbox/board Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make reset_cpu a __noreturn functionSascha Hauer2010-03-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add the whole x86 architecture to the build systemJuergen Beisert2010-01-142-0/+117
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add a special command to load and start a bzImage on x86Juergen Beisert2010-01-143-0/+80
| | | | | | | | | Other architectures are supporting the uImage format used by barebox's 'bootm' command. x86 does'nt. So, we need a special command to be able to boot the x86 specific bzImage format. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add a low level disk drive access driverJuergen Beisert2010-01-142-0/+78
| | | | | | | | | This is a low level disk drive communication driver. It uses the real mode BIOS found on most x86 platforms, to read and write sectors. Used by the generic disk driver. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Bring in the time reference for the x86 platformsJuergen Beisert2010-01-142-0/+74
| | | | | | | | This code uses the always (hopefully) existing PIT device to get the time reference for barebox. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add a generic PC platformJuergen Beisert2010-01-141-0/+186
| | | | | | | | | This code adds a generic x86 platform, enabling barebox to act as a bootloader like 'GRUB'. Very minimalistic, yet. Supports only a serial console and is tested with QEMU only. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add functions to be able to boot with BIOSs helpJuergen Beisert2010-01-1412-0/+1027
| | | | | | | | These functions are special: They are running in the 16 bit real mode world to bring up barebox on an x86 box. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add some generic functions to make x86 workJuergen Beisert2010-01-146-0/+579
| | | | | | | Add some generic functions to make barebox work on x86. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Bring in the first x86 specific codeJuergen Beisert2010-01-144-0/+103
| | | | | | | | | Add some generic required code to make barebox work on x86. Note: Resetting the CPU is unfinished yet. I need some ideas how to reset this kind of architecture gracefully. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Adding required architecture header filesJuergen Beisert2010-01-1414-0/+626
| | | | | | | | Add architecture header files. Some of these files are empty, they only must exists to make the build system happy. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Adding x86 usage documentation to the treeJuergen Beisert2010-01-141-0/+128
Adding x86 usage documentation to the tree Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>