The NetBSD Project

CVS log for src/sys/arch/x86/x86/efi_machdep.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Tue Aug 1 16:05:12 2023 UTC (16 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +19 -14 lines
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

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon May 22 16:28:07 2023 UTC (18 months, 2 weeks ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +19 -2 lines
efi(4): Implement EFIIOC_GET_TABLE on x86.

PR kern/57076

XXX pullup-10

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon May 22 16:27:48 2023 UTC (18 months, 2 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -14 lines
efi(4): Move error macros to efi.h.

PR kern/57076

XXX pullup-10

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Dec 24 15:23:02 2022 UTC (23 months, 1 week ago) by andvar
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
s/reqest/request/, s/requst/request/ and s/reuqest/request/ in comments.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 24 15:01:54 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
x86/efi: Print uuids in slightly more standard notation.

Anyone need a spare hyphen?  We had a few extras, apparently.

XXX pullup-8
XXX pullup-9

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 24 11:05:18 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +448 -2 lines
x86: Support EFI runtime services.

This creates a special pmap, efi_runtime_pmap, which avoids setting
PTE_U but allows mappings to lie in what would normally be user VM --
this way we don't fall afoul of SMAP/SMEP when executing EFI runtime
services from CPL 0.  SVS does not apply to the EFI runtime pmap.

The mechanism is intended to work with either physical addressing or
virtual addressing; currently the bootloader does physical addressing
but in principle it could be modified to do virtual addressing
instead, if it allocated virtual pages, assigned them in the memory
map, and issued RT->SetVirtualAddressMap.

Not sure pmap_activate_sync and pmap_deactivate_sync are correct,
need more review from an x86 wizard.

If this causes fallout, it can be disabled temporarily without
reverting anything by just making efi_runtime_init return immediately
without doing anything, or by removing options EFI_RUNTIME.

amd64-only for now pending type fixes and testing on i386.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Aug 30 11:03:36 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
x86: Rename x86/efi.c -> x86/efi_machdep.c.

Avoid collision with dev/efi.c.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>