opnsense-src/sys/amd64
Doug Moore 4ed1837853 libkern: add ilog2 macro
The kernel source contains several definitions of an ilog2 function;
some are slower than necessary, and one of them is incorrect.
Elimininate them all and define an ilog2 macro in libkern to replace
them, in a way that is fast, correct for all argument types, and, in a
GENERIC kernel, includes a check for an invalid zero parameter.

Folks at Microsoft have verified that having a correct ilog2
definition for their MANA driver doesn't break it.

Reviewed by:	alc, markj, mhorne (older version), jhibbits (older version)
Differential Revision:	https://reviews.freebsd.org/D45170
Differential Revision:	https://reviews.freebsd.org/D45235

(cherry picked from commit b0056b31e90029553894d17c441cbb2c06d31412)
2025-02-10 04:27:12 -06:00
..
acpica x86: AMD Zen2: Zenbleed chicken bit mitigation 2023-10-10 09:34:31 -04:00
amd64 amd64: on any fault during call to EFI RT, restore execution and print fault details 2025-01-01 12:30:20 +02:00
conf sys: add conf/std.debug, generic debugging options 2024-10-09 10:44:35 +02:00
ia32 syscalls: fix missing SIGSYS for several ENOSYS errors 2023-10-09 06:24:31 +03:00
include libkern: add ilog2 macro 2025-02-10 04:27:12 -06:00
linux amd64/linux*: mark brandlists as static 2024-02-14 05:42:40 +02:00
linux32 Abstract UIO allocation and deallocation. 2024-03-08 23:27:20 -05:00
pci x86: Adjust base addr for PCI MCFG regions 2024-01-18 15:24:35 -08:00
sgx sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vmm vmcb.h: fix typo in the comment, try two 2024-12-13 09:07:51 +02:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00