Luna/libluna/src/Stack.cpp
apio 77887eed80
All checks were successful
continuous-integration/drone/push Build is passing
luna -> libluna
2023-02-27 15:22:39 +01:00

11 lines
171 B
C++

#include <luna/Stack.h>
Stack::Stack(u64 base, usize bytes) : m_base(base), m_bytes(bytes)
{
}
u64 Stack::top() const
{
return (m_base + m_bytes) - sizeof(void*);
}