1/**
2 * \file
3 * \brief Architecture specific dispatcher structure private to the user
4 */
5
6/*
7 * Copyright (c) 2015, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15#ifndef ARCH_AARCH64_BARRELFISH_DISPATCHER_H
16#define ARCH_AARCH64_BARRELFISH_DISPATCHER_H
17
18#include <target/aarch64/barrelfish/dispatcher_target.h>
19
20static inline struct dispatcher_generic*
21get_dispatcher_generic(dispatcher_handle_t handle)
22{
23    struct dispatcher_aarch64 *disp = (struct dispatcher_aarch64*)handle;
24    return &disp->generic;
25}
26
27static inline size_t get_dispatcher_size(void)
28{
29    return sizeof(struct dispatcher_aarch64);
30}
31
32#endif // ARCH_AARCH64_BARRELFISH_DISPATCHER_H
33