mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
Kernel: Add VERIFY_NOT_REACHED to aarch64 locking functions
This commit is contained in:
parent
e98ea8a977
commit
283d8e8f51
2 changed files with 20 additions and 2 deletions
|
@ -15,15 +15,23 @@ ScopedCritical::~ScopedCritical() = default;
|
||||||
|
|
||||||
ScopedCritical::ScopedCritical(ScopedCritical&& /*from*/)
|
ScopedCritical::ScopedCritical(ScopedCritical&& /*from*/)
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
ScopedCritical& ScopedCritical::operator=(ScopedCritical&& /*from*/)
|
ScopedCritical& ScopedCritical::operator=(ScopedCritical&& /*from*/)
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScopedCritical::leave() { }
|
void ScopedCritical::leave()
|
||||||
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
|
}
|
||||||
|
|
||||||
void ScopedCritical::enter() { }
|
void ScopedCritical::enter()
|
||||||
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,20 +24,24 @@ public:
|
||||||
|
|
||||||
ALWAYS_INLINE u32 lock()
|
ALWAYS_INLINE u32 lock()
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE void unlock(u32 /*prev_flags*/)
|
ALWAYS_INLINE void unlock(u32 /*prev_flags*/)
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] ALWAYS_INLINE bool is_locked() const
|
[[nodiscard]] ALWAYS_INLINE bool is_locked() const
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE void initialize()
|
ALWAYS_INLINE void initialize()
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,29 +53,35 @@ public:
|
||||||
RecursiveSpinlock(LockRank rank = LockRank::None)
|
RecursiveSpinlock(LockRank rank = LockRank::None)
|
||||||
{
|
{
|
||||||
(void)rank;
|
(void)rank;
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE u32 lock()
|
ALWAYS_INLINE u32 lock()
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE void unlock(u32 /*prev_flags*/)
|
ALWAYS_INLINE void unlock(u32 /*prev_flags*/)
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] ALWAYS_INLINE bool is_locked() const
|
[[nodiscard]] ALWAYS_INLINE bool is_locked() const
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] ALWAYS_INLINE bool is_locked_by_current_processor() const
|
[[nodiscard]] ALWAYS_INLINE bool is_locked_by_current_processor() const
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE void initialize()
|
ALWAYS_INLINE void initialize()
|
||||||
{
|
{
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue