L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
kip.h
1/*
2 * Copyright (C) 2024 Kernkonzept GmbH.
3 * Author(s): Georg Kotheimer <georg.kotheimer@kernkonzept.com>
4 *
5 * License: see LICENSE.spdx (in this directory or the directories above)
6 */
7#pragma once
8
19L4_INLINE int
20l4_kip_has_isa_ext(l4_kernel_info_t const *kip, L4_riscv_isa_ext ext) L4_NOTHROW
21{
22 if (ext < 0 || ext >= L4_riscv_isa_ext_max)
23 return 0;
24
25 return kip->platform_info.arch.isa_ext[ext / 32] & (1 << (ext % 32));
26}
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:167
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
L4 Kernel Interface Page.
Definition kip.h:37