#
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 |
|
#
1c1783d6 |
| 11-Jan-2023 |
Warner Losh <imp@FreeBSD.org> |
stand: Create common gen_setcurrdev and replace code
Replace 4 identical copies of *_setcurrdev with gen_setcurrdev to avoid having to create a 5th copy. uboot_setcurrdev is actually different and n
stand: Create common gen_setcurrdev and replace code
Replace 4 identical copies of *_setcurrdev with gen_setcurrdev to avoid having to create a 5th copy. uboot_setcurrdev is actually different and needs to remain separate (even though it's quite similar).
Sponsored by: Netflix Reviewed by: fuz@fuz.su, kevans Differential Revision: https://reviews.freebsd.org/D38003
show more ...
|
#
66012c8f |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: create devinit
devinit() marches through all the devices, calling the inint routines if any exist. Replace all the identical copies of this code.
Sponsored by: Netflix Differential Revision
stand: create devinit
devinit() marches through all the devices, calling the inint routines if any exist. Replace all the identical copies of this code.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37349
show more ...
|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
f8328864 |
| 20-Oct-2021 |
Leandro Lupori <luporl@FreeBSD.org> |
powerpc64le: stand fixes
Fix boot1 and loader on PowerPC64 little-endian (LE).
Due to endian issues, boot1 couldn't find the UFS boot partition and loader wasn't able to load the kernel. Most of th
powerpc64le: stand fixes
Fix boot1 and loader on PowerPC64 little-endian (LE).
Due to endian issues, boot1 couldn't find the UFS boot partition and loader wasn't able to load the kernel. Most of the issues happened because boot1 and loader were BE binaries trying to access LE UFS partitions and because loader expects the kernel ELF image to use the same endian as itself.
To fix these issues, boot1 and loader are now built as LE binaries on PPC64LE. To support this, the functions that call OpenFirmware were enhanced to correctly perform endian conversion on its input and output arguments and to change the CPU into BE mode before making the calls, as OpenFirmware always runs in BE. Besides that, some other small fixes were needed.
Submitted by: bdragon (initial version) Reviewed by: alfredo, jhibbits Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D32160
show more ...
|
#
680ca739 |
| 21-Sep-2021 |
Leandro Lupori <luporl@FreeBSD.org> |
powerpc64: fix loader regression
After b4cb3fe0e39a, loader started crashing on PowerPC64, with a Program Exception (700) error. The problem was that archsw was used before being initialized, with t
powerpc64: fix loader regression
After b4cb3fe0e39a, loader started crashing on PowerPC64, with a Program Exception (700) error. The problem was that archsw was used before being initialized, with the new mount feature. This change fixes the issue by initializing archsw earlier, before setting currdev, that triggers the mount.
Reviewed by: tsoome MFC after: 1 month X-MFC-With: b4cb3fe0e39a Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D32027
show more ...
|
#
b4cb3fe0 |
| 12-Aug-2021 |
Toomas Soome <tsoome@FreeBSD.org> |
loader: implement mount/unmount rootfs
We want to keep our root file system open to preserve bcache segment between file accesses, thus reducing physical disk IO.
Reviewed by: imp, allanjude, kevan
loader: implement mount/unmount rootfs
We want to keep our root file system open to preserve bcache segment between file accesses, thus reducing physical disk IO.
Reviewed by: imp, allanjude, kevans (previous version) Differential Revision: https://reviews.freebsd.org/D30848 MFC after: 1 month
show more ...
|
Revision tags: release/13.0.0, release/12.2.0 |
|
#
9e4c35f8 |
| 14-Sep-2020 |
Brandon Bergren <bdragon@FreeBSD.org> |
stand/ficl 64-bit compatibility
Currently, the only thing that prevents a functioning 64-bit FICL build is a few integer types that were intended to be fixed-width.
Changing them to C99 integer typ
stand/ficl 64-bit compatibility
Currently, the only thing that prevents a functioning 64-bit FICL build is a few integer types that were intended to be fixed-width.
Changing them to C99 integer types allows building a functioning 64-bit FICL.
While this isn't applicable to the default settings of any in-tree loaders, it is necessary for a future Petitboot loader, due to the requirement that it be compiled as a 64-bit program.
Reviewed by: tsoome, imp (earlier revision) Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D26364
show more ...
|
Revision tags: release/11.4.0, release/12.1.0 |
|
#
83e356c3 |
| 31-Jul-2019 |
Leandro Lupori <luporl@FreeBSD.org> |
[PPC64] Implement CAS
Guest PPC OSs running under a hypervisor may communicate the features they support, in order for the hypervisor to expose a virtualized machine in the way the client (guest OS)
[PPC64] Implement CAS
Guest PPC OSs running under a hypervisor may communicate the features they support, in order for the hypervisor to expose a virtualized machine in the way the client (guest OS) expects (see LoPAPR 1.1 - B.6.2.3).
This is done by calling the "/ibm,client-architecture-support" (CAS) method, informing supported features in option vectors. Until now, FreeBSD wasn't using CAS, but instead relied on hypervisor/QEMU's defaults.
The problem is that, without CAS, it is very inconvenient to run POWER9 VMs on a POWER9 host running with radix enabled. This happens because, in this case, the QEMU default is to present the guest OS a dual MMU (HPT/RPT), instead of presenting a regular HPT MMU, as FreeBSD expects, resulting in an early panic. The known workarounds required either changing the host to disable radix or passing a flag to QEMU to run in a POWER8 compatible mode.
With CAS, FreeBSD is now able to communicate that it wants an HPT MMU, independent of the host setup, which now makes FreeBSD work on POWER9/pseries, with KVM enabled and without hugepages (support added in a previous commit).
As CAS is invoked through OpenFirmware's call-method interface, it needs to be performed early, when OpenFirmware is still operational. Besides, now that FDT is the default way to inspect the device tree on PPC, OFW call-method feature will be unavailable by default, when control is passed to the kernel. Because of this, the call to CAS is being performed at the loader, instead of at the kernel.
To avoid regressions with old platforms, this change uses CAS only on POWER8/POWER9.
Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D20827
show more ...
|
Revision tags: release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
5f88ee44 |
| 14-Jun-2018 |
Warner Losh <imp@FreeBSD.org> |
bootprog_info is generated in vers.c. Move it's definition to bootstrap.h and remove all the redundant copies.
Sponsored by: Netflix
|
#
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 ...
|
#
18a119d7 |
| 04-Mar-2018 |
Nathan Whitehorn <nwhitehorn@FreeBSD.org> |
Where we can, pass the kernel an FDT facsimile of the OF device tree rather than a pointer to Open Firmware by default. This eliminates a number of potentially unsafe calls to firmware from the kerne
Where we can, pass the kernel an FDT facsimile of the OF device tree rather than a pointer to Open Firmware by default. This eliminates a number of potentially unsafe calls to firmware from the kernel and provides better performance.
This feature is meant to be expanded until it is on by default unconditionally and, ideally, we can then garbage-collect the nightmare pile of hacks required to call into Open Firmware from a live kernel.
Reviewed by: jhibbits
show more ...
|
#
e05bc4f9 |
| 04-Mar-2018 |
Nathan Whitehorn <nwhitehorn@FreeBSD.org> |
Move "common" Open Firmware parts of the loader used only on PowerPC to the powerpc/ subdirectory. These have never used by SPARC and we have no other (and almost certainly will have no other) Open F
Move "common" Open Firmware parts of the loader used only on PowerPC to the powerpc/ subdirectory. These have never used by SPARC and we have no other (and almost certainly will have no other) Open Firmware platforms. This makes the directory structure simpler and lets us avoid some cargo-cult MI patterns on code that is, and always was, architecture-specific.
show more ...
|