mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 10:25:08 -04:00
kern: fully implement slabheap init
This commit is contained in:
parent
7d6b16d7fb
commit
d5a4c17ee7
12 changed files with 319 additions and 13 deletions
|
@ -45,6 +45,8 @@ namespace ams::kern {
|
|||
ALWAYS_INLINE ~KScopedSpinLock() {
|
||||
this->lock_ptr->Unlock();
|
||||
}
|
||||
|
||||
explicit ALWAYS_INLINE KScopedSpinLock(KSpinLock &l) : KScopedSpinLock(std::addressof(l)) { /* ... */ }
|
||||
};
|
||||
|
||||
class KScopedAlignedSpinLock {
|
||||
|
@ -57,6 +59,7 @@ namespace ams::kern {
|
|||
ALWAYS_INLINE ~KScopedAlignedSpinLock() {
|
||||
this->lock_ptr->Unlock();
|
||||
}
|
||||
explicit ALWAYS_INLINE KScopedAlignedSpinLock(KAlignedSpinLock &l) : KScopedAlignedSpinLock(std::addressof(l)) { /* ... */ }
|
||||
};
|
||||
|
||||
class KScopedNotAlignedSpinLock {
|
||||
|
@ -69,6 +72,8 @@ namespace ams::kern {
|
|||
ALWAYS_INLINE ~KScopedNotAlignedSpinLock() {
|
||||
this->lock_ptr->Unlock();
|
||||
}
|
||||
|
||||
explicit ALWAYS_INLINE KScopedNotAlignedSpinLock(KNotAlignedSpinLock &l) : KScopedNotAlignedSpinLock(std::addressof(l)) { /* ... */ }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue