aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/mips/beri/loader/loader.ldscript
Commit message (Collapse)AuthorAgeFilesLines
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-141-84/+0
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325834
* Use compiler driver to link BERI boot loadersAlexander Kabaev2017-01-051-1/+0
| | | | | | | | | | | | | | | | | | Do not hardcode elf64-tradbigmips as output format in BERI linker scrips. Unfortunately, in-tree toolchain and external newer versions of binutils mean two different things under that. When creating elf binaries using external toolchain, gcc uses elf64-tradbigmips-freebsd and so linker script file has to match in order for ld to be able to create the final loader binary. Rather than trying to guess, remove hardcoded output format directive from the linker directive files and use CC to invoke the linker instead. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D9050 Notes: svn path=/head/; revision=311458
* Create a new linker set, Xficl_compile_set which contains a list ofWarner Losh2016-10-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | functions to call at the appropriate time to register new forth words. In the past we've done this with ifdef soup, but now if the file is included in the build, we'll get the new forth words. Use this new functionality to move the pci bios stuff out of loader.c by moving it to biospci.c. Move the pnp functionality to common/pnp.c. Move the inb/outb forth words to the i386 sysdep.c file where their implementation is defined. Adjust the efi linker scripts and build machinery to cope. his should be an invisible change to forth scripts and user experience. Differential Revision: https://reviews.freebsd.org/D8145 Notes: svn path=/head/; revision=307324
* Increase BERI loader section alignment to 16Ed Maste2014-12-031-3/+3
| | | | | | | | | | | | | The .text, .bss, and .data sections claimed 16-byte alignment, but were only aligned to 8 by the linker script. Discovered with strip(1) from elftoolchain, which performs validation absent from the binutils strip(1). Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=275457
* Add optional support for USB to BERI loader. Fix the linker script soHans Petter Selasky2014-05-301-4/+9
| | | | | | | | | that the garbage collection feature can be used when linking. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=266893
* Commit a first cut at ports of boot2 and loader to 64-bit MIPS, with aRobert Watson2014-02-181-0/+76
particular interest in (and support for) SRI International and the University of Cambridge's BERI FPGA soft-core processor. This includes micro device drivers for the Altera JTAG UART console, memory-mapped flash, and the Altera SD Card IP core in both boot2 and loader. boot2 can be written to the on-board Intel StrataFlash on the DE4 board, and loader can be placed in StrataFlash or the SD Card. Plenty of XXX comments, but works quite well locally in practice and I am using it daily. Although I had originally ported the ARM version of boot2, the current version is x86-derived as that proved more feature-complete. As we don't currently use partitions on our flash disks, support for that has been commented out relative to x86, but would be easy to add back. FDT support has not yet been hooked up, although some skeleton parts have been put in place for that. This may well be a useful starting point for ports to other 32-bit and 64-bit MIPS-ISA systems. This merge is synchronised to CheriBSD github commit e41d74fd719525d4dd7a7ee499114679165eeaf6, but with some additions of $FreeBSD. MFC after: 3 weeks Sponsored by: DARPA, AFRAL Notes: svn path=/head/; revision=262197