Allow debug option to be communicated at boot

This commit is contained in:
Justin C. Miller
2019-03-11 03:04:57 -07:00
parent 74a5c301f8
commit 870ca1db45
20 changed files with 128 additions and 68 deletions

View File

@@ -1,5 +1,3 @@
#include <algorithm>
#include "kutil/frame_allocator.h"
namespace kutil {
@@ -81,7 +79,7 @@ frame_allocator::allocate(size_t count, uintptr_t *address)
auto *first = m_free.front();
unsigned n = std::min(count, static_cast<size_t>(first->count));
unsigned n = count < first->count ? count : first->count;
*address = first->address;
if (count >= first->count) {