[Yellowstone] Move to yunq definition for yellowstone server.

This commit is contained in:
Drew Galbraith 2023-10-24 18:24:26 -07:00
parent 9c9fd167cd
commit 2b27af5814
22 changed files with 696 additions and 118 deletions

View file

@ -6,7 +6,7 @@
namespace {
class NaiveAllocator {
public:
constexpr static uint64_t kSize = 0x4000;
constexpr static uint64_t kSize = 0x10000;
NaiveAllocator() {}
bool is_init() { return next_addr_ != 0; }
void Init() {
@ -23,6 +23,7 @@ class NaiveAllocator {
uint64_t addr = next_addr_;
next_addr_ += size;
if (next_addr_ >= max_addr_) {
ZProcessExit(0xBEEF);
return 0;
}
return reinterpret_cast<void*>(addr);