Module Name: src Committed By: martin Date: Tue Aug 1 16:05:12 UTC 2023
Modified Files: src/sys/arch/arm/arm [netbsd-10]: efi_runtime.c src/sys/arch/x86/x86 [netbsd-10]: efi_machdep.c src/sys/dev [netbsd-10]: efi.c efivar.h src/sys/dev/efi [netbsd-10]: efi.h src/sys/sys [netbsd-10]: efiio.h Log Message: Pull up following revision(s) (requested by riastradh in ticket #292): sys/arch/arm/arm/efi_runtime.c: revision 1.11 sys/dev/efi/efi.h: revision 1.3 sys/arch/x86/x86/efi_machdep.c: revision 1.5 sys/arch/x86/x86/efi_machdep.c: revision 1.6 sys/dev/efi.c: revision 1.5 sys/dev/efi.c: revision 1.6 sys/dev/efi.c: revision 1.7 sys/dev/efi.c: revision 1.8 sys/dev/efi.c: revision 1.9 sys/dev/efivar.h: revision 1.2 sys/sys/efiio.h: revision 1.3 efi(4): Parenthesize EFIERR argument out of paranoia. PR kern/57076 efi(4): Move error macros to efi.h. PR kern/57076 efi(4): Implement MI parts of EFIIOC_GET_TABLE. Intended to be compatible with FreeBSD. Not yet supported on any architectures. PR kern/57076 efi(4): Implement EFIIOC_GET_TABLE on x86. PR kern/57076 efi(4): Translate between size_t and unsigned long. Fixes i386 build. PR kern/57076 efi(4): Fix logic to handle buffer sizing. Can't KASSERT(datasize <= databufsize) because the caller is allowed to pass in a too-small size and get ERR_BUFFER_TOO_SMALL back, with the actual size returned so it can resize its buffer. So just clamp the size to the smaller of what the caller provided and what the firwmare provided, instead of asserting anything. PR kern/57076 To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.2.1 src/sys/arch/arm/arm/efi_runtime.c cvs rdiff -u -r1.3 -r1.3.4.1 src/sys/arch/x86/x86/efi_machdep.c cvs rdiff -u -r1.4 -r1.4.4.1 src/sys/dev/efi.c cvs rdiff -u -r1.1 -r1.1.4.1 src/sys/dev/efivar.h cvs rdiff -u -r1.2 -r1.2.4.1 src/sys/dev/efi/efi.h cvs rdiff -u -r1.2 -r1.2.4.1 src/sys/sys/efiio.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.