mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 23:59:49 -04:00
thermosphere: rewrite debug pause & fix single step state machine
This commit is contained in:
parent
6b8a843ffb
commit
906d6a4f20
13 changed files with 92 additions and 46 deletions
|
@ -62,6 +62,21 @@ typedef enum ReadWriteDirection {
|
|||
DIRECTION_READWRITE = DIRECTION_READ | DIRECTION_WRITE,
|
||||
} ReadWriteDirection;
|
||||
|
||||
static inline void __wfe(void)
|
||||
{
|
||||
__asm__ __volatile__ ("wfe" ::: "memory");
|
||||
}
|
||||
|
||||
static inline void __sev(void)
|
||||
{
|
||||
__asm__ __volatile__ ("sev" ::: "memory");
|
||||
}
|
||||
|
||||
static inline void __sevl(void)
|
||||
{
|
||||
__asm__ __volatile__ ("sevl" ::: "memory");
|
||||
}
|
||||
|
||||
/*
|
||||
Domains:
|
||||
- Inner shareable: typically cores within a cluster (maybe more) with L1+L2 caches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue