1/*
2 * Copyright 2018, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15/* This file provides convenient wrappers around seL4 IPC buffer manipulation */
16#include <autoconf.h>
17#include <sel4vka/gen_config.h>
18#include <vka/cspacepath_t.h>
19#include <vka/object.h>
20
21static inline void vka_set_cap_receive_path(const cspacepath_t *src)
22{
23    seL4_SetCapReceivePath(
24        /* _service */      src->root,
25        /* index */         src->capPtr,
26        /* depth */         src->capDepth
27    );
28}
29