Luna/luna/src/Stack.cpp
apio 84c82a4e75
All checks were successful
continuous-integration/drone/push Build is passing
luna, kernel: More constness
2023-01-10 19:31:41 +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*);
}