Searched refs:trap (Results 1 - 20 of 20) sorted by relevance

/fuchsia/zircon/system/utest/async/
H A Dtrap_tests.cpp6 #include <lib/async/cpp/trap.h>
23 zx_status_t SetGuestBellTrap(async_guest_bell_trap_t* trap,
26 last_trap = trap;
42 async::GuestBellTrapBase* trap,
46 last_trap = trap;
51 virtual async::GuestBellTrapBase& trap() = 0;
61 async::GuestBellTrapBase& trap() override { return trap_; }
64 async::GuestBellTrap trap_{[this](async_dispatcher_t* dispatcher, async::GuestBellTrap* trap, variable
66 Handler(dispatcher, trap, status, bell);
72 async::GuestBellTrapBase& trap() overrid
41 Handler(async_dispatcher_t* dispatcher, async::GuestBellTrapBase* trap, zx_status_t status, const zx_packet_guest_bell_t* bell) argument
82 async::GuestBellTrap trap; local
[all...]
/fuchsia/zircon/system/ulib/async/include/lib/async/
H A Dtrap.h12 // Handles an asynchronous trap access.
17 async_guest_bell_trap_t* trap,
21 // Holds context for a bell trap and its handler.
23 // After successfully posting setting the trap, the client is responsible for retaining
25 // dispatcher shuts down. There is no way to cancel a trap which has been set.
30 // The handler to invoke to handle the trap access.
34 // Sets a bell trap in the guest to be handled asynchronously via a handler.
36 // |guest| is the handle of the guest the trap will be set on.
37 // |addr| is the base address for the trap in the guest's physical address space.
38 // |length| is the size of the trap i
[all...]
H A Ddispatcher.h99 zx_status_t (*set_guest_bell_trap)(async_dispatcher_t* dispatcher, async_guest_bell_trap_t* trap,
/fuchsia/zircon/third_party/ulib/musl/sanitizers/
H A Dsancov-stubs.S10 .macro trap
23 trap
44 0: trap
/fuchsia/zircon/system/ulib/async/
H A Dtrap.cpp5 #include <lib/async/cpp/trap.h>
24 void GuestBellTrap::CallHandler(async_dispatcher_t* dispatcher, async_guest_bell_trap_t* trap, argument
26 auto self = Dispatch<GuestBellTrap>(trap);
H A Dops.c8 #include <lib/async/trap.h>
36 zx_status_t async_set_guest_bell_trap(async_dispatcher_t* dispatcher, async_guest_bell_trap_t* trap, argument
38 return dispatcher->ops->v1.set_guest_bell_trap(dispatcher, trap, guest, addr, length);
H A Drules.mk28 $(LOCAL_INC)/trap.h \
53 $(LOCAL_DIR)/trap.cpp \
62 $(LOCAL_INC)/cpp/trap.h \
/fuchsia/zircon/system/ulib/async/include/lib/async/cpp/
H A Dtrap.h8 #include <lib/async/trap.h>
13 // Holds context for a bell trap and its handler.
15 // After successfully posting setting the trap, the client is responsible for retaining
17 // dispatcher shuts down. There is no way to cancel a trap which has been set.
32 // Sets a bell trap in the guest to be handled asynchronously via a handler.
34 // |guest| is the handle of the guest the trap will be set on.
35 // |addr| is the base address for the trap in the guest's physical address space.
36 // |length| is the size of the trap in the guest's physical address space.
38 // Returns |ZX_OK| if the trap was successfully set.
40 // Returns |ZX_ERR_ALREADY_EXISTS| if a bell trap wit
54 Dispatch(async_guest_bell_trap_t* trap) argument
109 CallHandler(async_dispatcher_t* dispatcher, async_guest_bell_trap_t* trap, zx_status_t status, const zx_packet_guest_bell_t* bell) argument
[all...]
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dtrap.c51 #include "trap.h"
67 /* trap handler commands */
68 static char *trap[NSIG]; variable
85 INCLUDE "trap.h"
93 * The trap builtin.
107 if (trap[signo] != NULL) {
109 "trap -- %s %s\n",
110 single_quote(trap[signo]),
123 outfmt(out2, "trap: %s: bad trap\
[all...]
/fuchsia/zircon/system/ulib/async-testutils/
H A Ddispatcher_stub.cpp36 zx_status_t stub_set_guest_bell_trap(async_dispatcher_t* dispatcher, async_guest_bell_trap_t* trap, argument
39 trap, *zx::unowned_guest(guest), addr, length);
102 zx_status_t DispatcherStub::SetGuestBellTrap(async_guest_bell_trap_t* trap, argument
/fuchsia/zircon/system/ulib/async-testutils/include/lib/async-testutils/
H A Ddispatcher_stub.h25 virtual zx_status_t SetGuestBellTrap(async_guest_bell_trap_t* trap,
/fuchsia/zircon/system/utest/compiler/
H A Drules.mk18 MODULE_COMPILEFLAGS := -fsanitize=integer-divide-by-zero,signed-integer-overflow -fsanitize-undefined-trap-on-error
/fuchsia/zircon/system/dev/block/zxcrypt/
H A Drules.mk33 MODULE_COMPILEFLAGS := -fsanitize=integer-divide-by-zero,signed-integer-overflow -fsanitize-undefined-trap-on-error
/fuchsia/zircon/system/ulib/zxcrypt/
H A Drules.mk32 MODULE_COMPILEFLAGS := -fsanitize=integer-divide-by-zero,signed-integer-overflow -fsanitize-undefined-trap-on-error
/fuchsia/zircon/kernel/arch/arm64/hypervisor/
H A Dvmexit.cpp183 // longer need to trap writes to virtual memory control registers,
257 hypervisor::Trap* trap; local
258 zx_status_t status = traps->FindTrap(ZX_GUEST_TRAP_BELL, guest_paddr, &trap);
278 switch (trap->kind()) {
283 packet->key = trap->key();
286 if (!trap->HasPort())
288 return trap->Queue(*packet, nullptr);
293 packet->key = trap->key();
/fuchsia/zircon/kernel/lib/hypervisor/
H A Dtrap_map.cpp110 zx_status_t TrapMap::FindTrap(uint32_t kind, zx_gpaddr_t addr, Trap** trap) { argument
124 *trap = const_cast<Trap*>(&*iter);
/fuchsia/zircon/system/ulib/async-loop/
H A Dloop.c23 #include <lib/async/trap.h>
37 async_dispatcher_t* dispatcher, async_guest_bell_trap_t* trap,
99 async_guest_bell_trap_t* trap,
287 // Handle guest bell trap packets.
289 async_guest_bell_trap_t* trap = (void*)(uintptr_t)packet.key; local
291 loop, trap, packet.status, &packet.guest_bell);
316 async_guest_bell_trap_t* trap,
320 trap->handler((async_dispatcher_t*)loop, trap, status, bell);
610 async_dispatcher_t* async, async_guest_bell_trap_t* trap,
315 async_loop_dispatch_guest_bell_trap(async_loop_t* loop, async_guest_bell_trap_t* trap, zx_status_t status, const zx_packet_guest_bell_t* bell) argument
609 async_loop_set_guest_bell_trap( async_dispatcher_t* async, async_guest_bell_trap_t* trap, zx_handle_t guest, zx_vaddr_t addr, size_t length) argument
[all...]
/fuchsia/zircon/kernel/arch/x86/hypervisor/
H A Dvmexit.cpp450 hypervisor::Trap* trap; local
451 zx_status_t status = traps->FindTrap(ZX_GUEST_TRAP_IO, io_info.port, &trap);
460 packet->key = trap->key();
473 if (trap->HasPort())
474 return trap->Queue(*packet, vmcs);
890 hypervisor::Trap* trap;
891 zx_status_t status = traps->FindTrap(ZX_GUEST_TRAP_BELL, guest_paddr, &trap);
896 switch (trap->kind()) {
901 packet->key = trap->key();
904 if (!trap
[all...]
/fuchsia/zircon/kernel/lib/hypervisor/include/hypervisor/
H A Dtrap_map.h34 // Describes a single trap within a guest.
67 zx_status_t FindTrap(uint32_t kind, zx_gpaddr_t addr, Trap** trap);
/fuchsia/zircon/third_party/uapp/dash/
H A Drules.mk45 $(LOCAL_DIR)/src/trap.c \

Completed in 117 milliseconds