Revision tags: release/14.2.0, release/13.4.0 |
|
#
86077f4f |
| 24-Aug-2024 |
Ahmad Khalifa <ahmadkhalifa570@gmail.com> |
stand: use globals for the kernel and module types
Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1394
|
#
70713602 |
| 22-Aug-2024 |
Ahmad Khalifa <ahmadkhalifa570@gmail.com> |
stand: remove unnecessary checks for "elfN kernel"
We never set the kernel type to either "elf64 kernel" nor "elf32 kernel".
Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-s
stand: remove unnecessary checks for "elfN kernel"
We never set the kernel type to either "elf64 kernel" nor "elf32 kernel".
Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1394
show more ...
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
3e15b01d |
| 22-Feb-2024 |
Warner Losh <imp@FreeBSD.org> |
libsa: Remove redundant sys/cdefs.h
Sponsored by: Netflix
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
4a676571 |
| 17-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Pass in the proper size for bootinfo
Missed one sizeof(bi) -> sizeof(*bi) in 9758dd3de1cdd conversion to allocating bootinfo.
Noticed by: tijl@ Fixes: 9758dd3de1cdd Sponsored by: Netflix
|
#
9758dd3d |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Allocate bootinfo rather than have it be static
This saves 80 bytes (the new bootinfo structure was 84 bytes, and a pointer is 4 bytes). The bi_load32 code is the same size.
Sponsored by: N
stand: Allocate bootinfo rather than have it be static
This saves 80 bytes (the new bootinfo structure was 84 bytes, and a pointer is 4 bytes). The bi_load32 code is the same size.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D36575
show more ...
|
#
d43bcf62 |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Stop support booting 4.x and earlier kernels
FreeBSD 4.x and earlier used the bi_bios_geom to get the geometry of the device. Starting in 5.x, with the wdc -> ata rewrite, it was used only in
stand: Stop support booting 4.x and earlier kernels
FreeBSD 4.x and earlier used the bi_bios_geom to get the geometry of the device. Starting in 5.x, with the wdc -> ata rewrite, it was used only in pc98 kernels to report geometry of the drives. It can be safely removed as booting kernels this old is no longer supported. This saves 176 bytes in the BIOS loader.
Sponsored by: Netflix Reviewed by: adrian, emaste Differential Revision: https://reviews.freebsd.org/D36543
show more ...
|
#
e895ab3f |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Remove dead store to bi_kernelname
We set this value twice: once to 0 and once to the VA that has the name of the kernel. The first store is redundant. In addition, these two stores of 0 are
stand: Remove dead store to bi_kernelname
We set this value twice: once to 0 and once to the VA that has the name of the kernel. The first store is redundant. In addition, these two stores of 0 are also redundant. Since we never set them, they will always be zero, even if we're called multiple times. This saves 21 bytes on BIOS loader.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D36541
show more ...
|
#
fc352701 |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: collapse all copies of *copyenv into md_copyenv
Use the efi's bi_copyenv to md_copyenv and place it in modinfo.c. Remove all other nearly identical and efi's has the best error handling.
Spo
stand: collapse all copies of *copyenv into md_copyenv
Use the efi's bi_copyenv to md_copyenv and place it in modinfo.c. Remove all other nearly identical and efi's has the best error handling.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D36574
show more ...
|
#
5d1531d9 |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Move md_copymodules into modinfo.c and reduce copies
md_copymodules, bi_copymdoules, bi_copymodules32 (x2) and bi_copymodules64 (x2) are all the same routine... Replace them all with md_copym
stand: Move md_copymodules into modinfo.c and reduce copies
md_copymodules, bi_copymdoules, bi_copymodules32 (x2) and bi_copymodules64 (x2) are all the same routine... Replace them all with md_copymodules. This saves about 800 bytes on i386 BIOS loader, which is a nice bonus.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D36572
show more ...
|
#
bca9c87b |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Create common/modinfo.h
Move all the MOD_xxx macros to this header. Each user of this interface is currently required to define MOD_ALIGNMENT(l). modinfo was selected because it sits inbetwee
stand: Create common/modinfo.h
Move all the MOD_xxx macros to this header. Each user of this interface is currently required to define MOD_ALIGNMENT(l). modinfo was selected because it sits inbetween modules and metadata and will make it easier to migrate to new, shared intefaces.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D36571
show more ...
|
#
8b19d28d |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Create MOD_ALIGN macro and use it everywhere
To further reduce the differences between the different MOD_xxx macros, use MOD_ALIGN to do the proper alignment for the given use.
Sponsored by:
stand: Create MOD_ALIGN macro and use it everywhere
To further reduce the differences between the different MOD_xxx macros, use MOD_ALIGN to do the proper alignment for the given use.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D36570
show more ...
|
#
a705c72f |
| 16-Sep-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: use archsw.arch_copyin instead of i386_copyin
Since archsw.arch_copyin is always i386_copyin, this will be a nop in terms of functionality. This is a diff reduction against other copies of th
stand: use archsw.arch_copyin instead of i386_copyin
Since archsw.arch_copyin is always i386_copyin, this will be a nop in terms of functionality. This is a diff reduction against other copies of the code that differ only by what copyin routine they call.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D36568
show more ...
|
#
36232229 |
| 11-Aug-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: i386_fmtdev can be reduced to devformat
devformat produces the same output as i386_fmtdev, so just use it to reduce on the dependencies.
Sponsored by: Netflix Reviewed by: tsoome Different
stand: i386_fmtdev can be reduced to devformat
devformat produces the same output as i386_fmtdev, so just use it to reduce on the dependencies.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35927
show more ...
|
Revision tags: release/13.1.0, release/12.3.0, release/13.0.0 |
|
#
3630506b |
| 21-Dec-2020 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: implement framebuffer console
Draw console on efi. Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list, vbe set xxx). autoload font (/boot/fonts) based on resolution and font size
loader: implement framebuffer console
Draw console on efi. Add vbe framebuffer for BIOS loader (vbe off, vbe on, vbe list, vbe set xxx). autoload font (/boot/fonts) based on resolution and font size. Add command loadfont (set font by file) and variable screen.font (set font by size). Pass loaded font to kernel.
Export variables: screen.height screen.width screen.depth
Add gfx primitives to draw the screen and put png image on the screen. Rework menu draw to iterate list of consoles to enamble device specific output.
Probably something else I forgot...
Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27420
show more ...
|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
#
67350cb5 |
| 09-Dec-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340918 through r341763.
|
Revision tags: release/12.0.0 |
|
#
cdff1036 |
| 30-Nov-2018 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: create separate lists for fd, cd and hd, merge bioscd with biosdisk
Create unified block IO implementation in BIOS version, like it is done in UEFI side. Implement fd, disk and cd device lis
loader: create separate lists for fd, cd and hd, merge bioscd with biosdisk
Create unified block IO implementation in BIOS version, like it is done in UEFI side. Implement fd, disk and cd device lists, this will split floppy devices from disks and will allow us to have consistent, predictable device naming (modulo BIOS issues).
Differential Revision: https://reviews.freebsd.org/D17888
show more ...
|
#
c1418270 |
| 13-Jul-2018 |
Ian Lepore <ian@FreeBSD.org> |
Extend loader(8) geli support to all architectures and all disk-like devices.
This moves the bulk of the geli support from lib386/biosdisk.c into a new geli/gelidev.c which implements a devsw-type d
Extend loader(8) geli support to all architectures and all disk-like devices.
This moves the bulk of the geli support from lib386/biosdisk.c into a new geli/gelidev.c which implements a devsw-type device whose dv_strategy() function handles geli decryption. Support for all arches comes from moving the taste-and-attach code to the devopen() function in libsa.
After opening any DEVT_DISK device, devopen() calls the new function geli_probe_and_attach(), which will "attach" the geli code to the open_file struct by creating a geli_devdesc instance to replace the disk_devdesc instance in the open_file. That routes all IO for the device through the geli code.
A new public geli_add_key() function is added, to allow arch/vendor-specific code to add keys obtained from custom hardware or other sources.
With these changes, geli support will be compiled into all variations of loader(8) on all arches because the default is WITH_LOADER_GELI.
Relnotes: yes Sponsored by: Microchip Technology Inc Differential Revision: https://reviews.freebsd.org/D15743
show more ...
|
Revision tags: release/11.2.0 |
|
#
56e53cb8 |
| 13-Mar-2018 |
Warner Losh <imp@FreeBSD.org> |
Prefer uintXX_t to u_intXX_t
A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines. With consistency a great soul has simply nothing to do.
Prefer uintXX_t to u_intXX_t
A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines. With consistency a great soul has simply nothing to do. -- Ralph Waldo Emerson
show more ...
|
#
ad00892f |
| 12-Mar-2018 |
Warner Losh <imp@FreeBSD.org> |
Remove d_type from devdesc. It's not needed as we can fetch it from d_dev->dv_type when we need it.
|
#
de04d704 |
| 12-Mar-2018 |
Warner Losh <imp@FreeBSD.org> |
Use the actual struct devdesc at the start of all *_devdesc structs
The current system is fragile and requires very careful layout of all *_devdesc structures. It also makes it hard to change the ba
Use the actual struct devdesc at the start of all *_devdesc structs
The current system is fragile and requires very careful layout of all *_devdesc structures. It also makes it hard to change the base devdesc. Take a page from CAM and put the 'header' in all the derived classes and adjust the code to match.
For OFW, move the iHandle h_handle out of a slot conflicting with d_opendata. Due to quirks in the alignment rules, this worked. However changing the code to use d_opendata storage now that it's a pointer is hard, so just have a separate field for it.
All other cleanups were to make the *_devdesc structures match where they'd taken some liberties that were none-the-less compatible enough to work.
show more ...
|
#
55b1c6e7 |
| 15-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325663 through r325841.
|
#
ca987d46 |
| 15-Nov-2017 |
Warner Losh <imp@FreeBSD.org> |
Move sys/boot to stand. Fix all references to new location
Sponsored by: Netflix
|