1/*
2 * Copyright 2016, 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 GNU General Public License version 2. Note that NO WARRANTY is provided.
8 * See "LICENSE_GPLv2.txt" for details.
9 *
10 * @TAG(D61_GPL)
11 */
12
13#ifndef __IPC_BUFFER_H
14#define __IPC_BUFFER_H
15
16#include <types.h>
17#include <api/syscall.h>
18
19static inline time_t
20mode_parseTimeArg(word_t i, word_t *buffer)
21{
22    return getSyscallArg(i, buffer);
23}
24
25static inline word_t
26mode_setTimeArg(word_t i, time_t time, word_t *buffer, tcb_t *thread)
27{
28    return setMR(thread, buffer, i, time);
29}
30
31#endif /* __IPC_BUFFER_H */
32