summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Some more shrinking.rdivacky2011-03-102-21/+17
| | | | | | | | | | | | | | | | | o bunch of variables are turned into uint8_t o initial setting of namep[] in lookup() is removed as it's only overwritten a few lines down o kname is explicitly initialized in main() as BSS in boot2 is not zeroed o the setting and reading of "fmt" in load() is removed o buf in printf() is made static to save space Reviewed by: jhb Tested by: me and Fabian Keil <freebsd-listen fabiankeil de>
* MFi386: revision 219186nyan2011-03-031-22/+7
| | | | | | | | | This patch shrinks boot2 a little. o It switches kname to be just a pointer instead of an array. o It changes ioctl to unsigned from uint8_t. o It changes the second keyhit limit to 3 seconds from 5. o It removes bi_basemem/bi_extmem/bi_memsizes_valid setting.
* This patch shrinks boot2 a little.rdivacky2011-03-021-25/+8
| | | | | | | | | | | | | | | | | o It switches kname to be just a pointer instead of an array thus avoiding a couple of memcpy()s. o It changes ioctl to unsigned from uint8_t. o It changes the second keyhit limit to 3 seconds from 5 so that constant propagation can take place. o It changes the ticks overflow computation as suggested by bde@. o It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from bootinfo as it is unused. Reviewed by: jhb
* Remove duplicate "in".brucec2011-03-012-2/+2
| | | | | Suggested by: Rob Farmer <rfarmer at predatorlabs.net> MFC after: 3 days
* Revert some of r177626. "in in" is valid in certain sentences.brucec2011-02-282-2/+2
| | | | | PR: 121490 MFC after: 3 days
* Finally... Import the latest open-source ZFS version - (SPA) 28.pjd2011-02-274-82/+172
| | | | | | | | | | | | | | | Few new things available from now on: - Data deduplication. - Triple parity RAIDZ (RAIDZ3). - zfs diff. - zpool split. - Snapshot holds. - zpool import -F. Allows to rewind corrupted pool to earlier transaction group. - Possibility to import pool in read-only mode. MFC after: 1 month
* Rename bcpy() macro to bcopy().pjd2011-02-272-7/+7
|
* Clang's integrated assembler can now handle sys/boot/i386/boot2/sio.S.dim2011-02-273-6/+0
| | | | | | It used to choke on the notation "inb (%dx),%al" for "inb %dx,%al"; GNU as accepts both forms. Which notation is more 'correct' is an open question. :)
* Handle memory allocation failures in include().brucec2011-02-232-1/+12
| | | | | | PR: i386/85652 Submitted by: Ben Thomas <bthomas at virtualiron.com> MFC after: 3 days
* MFi386: revision 218926nyan2011-02-221-1/+1
| | | | | | | | In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable from uint16_t back to uint32_t. The actual option bitmasks (RB_* and RBX_*) assume at least a 32 bit variable. Submitted by: rdivacky
* In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variabledim2011-02-211-1/+1
| | | | | | | from uint16_t back to uint32_t. The actual option bitmasks (RB_* and RBX_*) assume at least a 32 bit variable. Submitted by: rdivacky
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.dim2011-02-2010-0/+57
| | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
* MFi386: revision 218745nyan2011-02-191-18/+1
| | | | Remove reading of symbols from a.out loaded files.
* Merge binutils 2.17.50 to head. This brings a number of improvements todim2011-02-185-13/+15
|\ | | | | | | | | | | | | | | | | x86 CPU support, better support for powerpc64, some new directives, and many other things. Bump __FreeBSD_version, and add a note to UPDATING. Thanks to the many people that have helped to test this. Obtained from: projects/binutils-2.17
| * For ia64, add a proper 'elf64-ia64-freebsd' output format to BFD, so thedim2010-12-052-2/+2
| | | | | | | | | | | | ELF branding for FreeBSD is done in the same way as amd64, i386 and sparc. Something similar should probably also be done for arm, mips and powerpc.
| * Sync: merge r215709 through r215824 from ^/head.dim2010-11-251-1/+2
| |\
| * \ Sync: merge r215464 through r215708 from ^/head.dim2010-11-221-4/+4
| |\ \
| * | | Sync: merge r215396 through r215463 from ^/head.dim2010-11-185-11/+43
| | | |
| * | | Sync: merge r215319 through r215395 from ^/head, so ports can actuallydim2010-11-162-6/+16
| | | | | | | | | | | | | | | | build! :)
| * | | Sync: merge r215273 through r215318 from ^/head.dim2010-11-141-1/+1
| | | |
| * | | Sync: merge r215189 through r215272 from ^/head.dim2010-11-142-41/+0
| |\ \ \
| * \ \ \ Sync: merge r214895 through r215140 from ^/head.dim2010-11-117-58/+6
| |\ \ \ \
| * | | | | For sys/boot/ia64/efi and sys/boot/ia64/ski, modify their linker scriptsdim2010-11-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to move the .IA_64.unwind and .IA_64.unwind_info input sections into separate output sections. Otherwise ld will complain about it (".data has both ordered [`.IA_64.unwind'] and unordered [`.IA_64.unwind_info'] sections"). This makes ia64 buildworld run to full completion.
| * | | | | Sync: merge r214353 through r214648 from ^/head.dim2010-11-015-33/+47
| |\ \ \ \ \
| * | | | | | Use new output format 'elf64-x86-64-freebsd' instead of 'elf64-x86-64',dim2010-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and similarly 'elf64-sparc-freebsd' instead of 'elf64-sparc'.
* | | | | | | - add missing if_ devices which were missing and are available as loadabledanger2011-02-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modules too Reviewed by: brucec
* | | | | | | Remove reading of symbols from a.out loaded files. Since we are tightimp2011-02-161-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on space for clang and a.out support is only needed for /boot/loader, they are excess bytes that serve no useful purpose other than to support really old kernels (FreeBSD < 3.2 or so). Prefer clang support over support for these old kernels and remove this code. We gain about 100 bytes of space this way. Reviewed by: rdivacky@
* | | | | | | MFi386: revision 218713nyan2011-02-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply a few small optimizations to boot2's code, to make it shrink a little further.
* | | | | | | In sys/boot/common/ufsread.c, use uint8_t instead of u_int8_t.dim2011-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: mdf
* | | | | | | Apply a few small optimizations to boot2's code, to make it shrink adim2011-02-152-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | little further. This gets us further on the way to be able to build it successfully with clang. Using in-tree gcc, this shrinks boot2.bin with 60 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 bytes. Submitted by: rdivacky Reviewed by: imp
* | | | | | | Fix build.nyan2011-02-121-2/+10
| | | | | | |
* | | | | | | Add the pc98boot image which concatenates boot0 and boot0.5.nyan2011-02-112-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's required by the gpart to write bootcode.
* | | | | | | Add PEX0 and select the first serial port as console.marcel2011-02-041-0/+28
| | | | | | |
* | | | | | | Add kern.msgbufsize default setting to /boot/defaults/loader.conf.pluknet2011-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by: Alex Kozlov <spam rm-rf.kiev.ua> (via private mail) Approved by: kib (mentor)
* | | | | | | Make MSGBUF_SIZE kernel option a loader tunable kern.msgbufsize.pluknet2011-01-212-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: perryh pluto.rain.com (previous version) Reviewed by: jhb Approved by: kib (mentor) Tested by: universe
* | | | | | | No need to list an obsolete arm compiler here.imp2011-01-202-2/+0
| | | | | | |
* | | | | | | Don't need __DYNAMIC here. it is commented out and a.out only -- these are ↵imp2011-01-203-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | all ELF.
* | | | | | | Fix a stack leak in r215345 when skipping over the ACPI menu item forjhb2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | machines that do not support ACPI. Submitted by: olli
* | | | | | | Help static analysis by initializing variables that we know cannot bemarcel2011-01-062-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | used uninitialized, but which cannot be inferred from the code itself.
* | | | | | | Import support for the Sony Playstation 3 using the OtherOS featurenwhitehorn2011-01-0617-1/+2364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | available on firmwares 3.15 and earlier. Caveats: Support for the internal SATA controller is currently missing, as is support for framebuffer resolutions other than 720x480. These deficiencies will be remedied soon. Special thanks to Peter Grehan for providing the hardware that made this port possible, and thanks to Geoff Levand of Sony Computer Entertainment for advice on the LV1 hypervisor.
* | | | | | | On i386 and amd64, consistently use the following options whenever wedim2011-01-054-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | want to avoid using any "advanced" CPU features: -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
* | | | | | | Remove an empty .if/.endif pair from sys/boot/ficl/Makefile that Idim2011-01-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | forgot to cleanup in the last commit.
* | | | | | | In lib/libstand, sys/boot/ficl and sys/boot/zfs, -mno-sse3 should alsodim2011-01-052-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | be used for amd64, not just for i386.
* | | | | | | Remove superfluous -mno-(mmx|3dnow|sse|sse2|sse3) flags in Makefilesdim2011-01-055-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | under sys/boot/{i386,pc98}, since these are already added via sys/boot/{i386,pc98}/Makefile.inc. Submitted by: arundel
* | | | | | | Add driver for DM&P Vortex86 RDC R6040 Fast Ethernet.yongari2010-12-311-0/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The controller is commonly found on DM&P Vortex86 x86 SoC. The driver supports all hardware features except flow control. The flow control was intentionally disabled due to silicon bug. DM&P Electronics, Inc. provided all necessary information including sample board to write driver and answered many questions I had. Many thanks for their support of FreeBSD. H/W donated by: DM&P Electronics, Inc.
* | | | | | Give a bit of a hint of the failure (read != expected) but don't makeemaste2010-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the error message needlessly more verbose. Discussed with: attilio
* | | | | | Make this printfoutput more verbose.attilio2010-11-231-1/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: Sandvine Incorporated Submitted by: Sandvine Incorporated MFC after: 3 days
* | | | | Check the OF_getprop() return value before proceeding. Allocate only asandreast2010-11-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | much space as needed for the mode buffer. Use strcmp, relying on OF giving back NULL terminated strings. Submitted by: marius Approved by: nwhitehorn (mentor)
* | | | | Revert r215435. We need to figure out the exact value to be loaded.andreast2010-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | Approved by: nwhitehorn (mentor)
OpenPOWER on IntegriCloud