The NetBSD Project

CVS log for src/sys/dev/efi.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 24 11:06:03 2022 UTC (4 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.3: +8 -5 lines
Diff to previous 1.3 (colored)

efi(4): Fix access to efi_isopen.

- Qualify efi_isopen with volatile.
- Ensure open has acquire ordering and close has release ordering.
- Use atomic_swap, not atomic_cas -- simpler and may be cheaper.
- Use atomic_store, not atomic_swap -- simpler and usually cheaper.

(Could maybe just use __cpu_simple_lock to avoid having to write out
these details.)

Revision 1.3 / (download) - annotate - [select for diffs], Fri Apr 1 06:51:12 2022 UTC (10 months ago) by skrll
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Trailing Whitespace

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 10 14:52:30 2021 UTC (15 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.1: +13 -9 lines
Diff to previous 1.1 (colored)

UEFI calls can modify size inputs, so stash them for use with kmem_free

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 10 13:03:09 2021 UTC (15 months, 2 weeks ago) by jmcneill
Branch: MAIN

efi: Add /dev/efi character device

Introduce a /dev/efi character device that provides a means for accessing
UEFI RT variable services from userland. Compatible with the FreeBSD ioctl
interface for ease of porting their libefivar and associated tools.

The ioctl interface is defined in sys/efiio.h.

To enable support for this on an arch, the kernel needs `pseudo-device efi`
and the MD EFI implementation needs to register its backend by calling
efi_ops_register(). This commit includes an implementation for Arm.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>