L4Re Operating System Framework
Interface and Usage Documentation
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
h
i
k
m
o
p
r
s
t
u
w
Functions
a
b
c
k
m
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
_
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
x
Related Symbols
Files
File List
Globals
All
_
a
b
d
e
f
g
l
m
n
o
p
r
s
Functions
_
b
e
f
g
l
o
p
Typedefs
e
g
l
p
Enumerations
e
l
p
Enumerator
a
d
e
f
l
n
p
r
s
Macros
_
e
g
l
m
p
s
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
asm_access.h
1
/*
2
* Copyright (C) 2021, 2024 Kernkonzept GmbH.
3
* Author(s): Jakub Jermar <jakub.jermar@kernkonzept.com>
4
*
5
* License: see LICENSE.spdx (in this directory or the directories above)
6
*/
7
8
#pragma once
9
10
#include <l4/sys/l4int.h>
11
#include <x86/l4/drivers/asm_access.h>
12
13
namespace
Asm_access {
14
15
inline
16
l4_uint64_t
17
read
(
l4_uint64_t
const
*mem)
18
{
19
l4_uint64_t
val;
20
21
asm
volatile
(
"movq %[mem], %[val]"
: [val]
"=r"
(val) : [mem]
"m"
(*mem));
22
23
return
val;
24
}
25
26
inline
27
void
28
write(
l4_uint64_t
val,
l4_uint64_t
*mem)
29
{
30
asm
volatile
(
"movq %[val], %[mem]"
: [mem]
"=m"
(*mem) : [val]
"r"
(val));
31
}
32
33
}
l4_uint64_t
unsigned long long l4_uint64_t
Unsigned 64bit value.
Definition
l4int.h:31
L4::Ipc::read
T read(Istream &s)
Read a value out of a stream.
Definition
ipc_stream:1289
pkg
drivers-frst
include
ARCH-amd64
asm_access.h
Generated on Mon Mar 3 2025 23:08:49 for L4Re Operating System Framework by
1.9.8