LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
libxenon
drivers
xenon_soc
xenon_io.h
Go to the documentation of this file.
1
#ifndef __xenon_soc_xenon_io_h
2
#define __xenon_soc_xenon_io_h
3
4
#include <stdint.h>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
static
inline
uint64_t
ld(
volatile
void
*addr)
11
{
12
uint64_t
l;
13
asm
volatile
(
"ld %0, 0(%1)"
:
"=r"
(l) :
"b"
(addr));
14
return
l;
15
}
16
17
18
static
inline
void
std(
volatile
void
*addr,
uint64_t
v)
19
{
20
asm
volatile
(
"std %1, 0(%0)"
: :
"b"
(addr),
"r"
(v));
21
asm
volatile
(
"eieio"
);
22
asm
volatile
(
"isync"
);
23
}
24
25
#ifdef __cplusplus
26
};
27
#endif
28
29
#endif
uint64_t
u64 uint64_t
Definition:
libfdt_env.h:12
Generated by
1.9.5