[roll] Roll fuchsia Add Rust support for KSpinlock and KEvent

Introduce KSpinlock and KEvent to the ksync library to support spinlock
and event synchronization in Rust kernel code.

- Implement KSpinlock by wrapping RawSpinlock, which interfaces with
  Zircon's C++ SpinLock.
- Implement KEvent by wrapping RawEvent, which interfaces with Zircon's
  C++ Event.
- Add newtype InterruptSavedState to hide architecture-specific interrupt
  state details.
- Add compile-time asserts in bindings.cc to verify layout compatibility
  for event and spinlock types between Rust and C++.
- Add helper macros in zr for less verbose FFI initialization and destruction.

Original-Original-Bug: 525049510
Test: ksync-tests, fx build
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1662939
Original-Original-Revision: 34c2f8feb62b60c53ce88f6c0f6146cd340faa80
GitOrigin-RevId: f7f6763c1c129ec3a2e17408628f15e7e550db80
Change-Id: Iea5157cd9f9c0d7f4a71044d66b2af7c809937a8
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1665215
Cr-Commit-Position: refs/heads/main@{#195156}
1 file changed
tree: 4821277d53babc4dfe7a5272280f969b165337f2
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.