All the kernel header files now use pargma once rather than the ifndef, as the pre-processed C files do not change while header files are protected with pargma once. This will also solve any naming issues caused by ifndef.
20 lines
410 B
C
20 lines
410 B
C
/*
|
|
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <types.h>
|
|
#include <api/syscall.h>
|
|
|
|
static inline time_t mode_parseTimeArg(word_t i, word_t *buffer)
|
|
{
|
|
return getSyscallArg(i, buffer);
|
|
}
|
|
|
|
static inline word_t mode_setTimeArg(word_t i, time_t time, word_t *buffer, tcb_t *thread)
|
|
{
|
|
return setMR(thread, buffer, i, time);
|
|
}
|