mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[util] Replace kutil with util
Now that kutil has no kernel-specific code in it anymore, it can actually be linked to by anything, so I'm renaming it 'util'. Also, I've tried to unify the way that the system libraries from src/libraries are #included using <> instead of "". Other small change: util::bip_buffer got a spinlock to guard against state corruption.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
#include <utility>
|
||||
|
||||
#include "kernel_args.h"
|
||||
#include "j6/init.h"
|
||||
|
||||
#include "enum_bitfields.h"
|
||||
#include "kutil/no_construct.h"
|
||||
#include <j6/init.h>
|
||||
#include <util/no_construct.h>
|
||||
#include <kernel_args.h>
|
||||
#include <enum_bitfields.h>
|
||||
|
||||
#include "assert.h"
|
||||
#include "device_manager.h"
|
||||
@@ -39,16 +38,16 @@ extern "C" uintptr_t initialize_main_user_stack();
|
||||
// These objects are initialized _before_ global constructors are called,
|
||||
// so we don't want them to have global constructors at all, lest they
|
||||
// overwrite the previous initialization.
|
||||
static kutil::no_construct<heap_allocator> __g_kernel_heap_storage;
|
||||
static util::no_construct<heap_allocator> __g_kernel_heap_storage;
|
||||
heap_allocator &g_kernel_heap = __g_kernel_heap_storage.value;
|
||||
|
||||
static kutil::no_construct<frame_allocator> __g_frame_allocator_storage;
|
||||
static util::no_construct<frame_allocator> __g_frame_allocator_storage;
|
||||
frame_allocator &g_frame_allocator = __g_frame_allocator_storage.value;
|
||||
|
||||
static kutil::no_construct<vm_area_untracked> __g_kernel_heap_area_storage;
|
||||
static util::no_construct<vm_area_untracked> __g_kernel_heap_area_storage;
|
||||
vm_area_untracked &g_kernel_heap_area = __g_kernel_heap_area_storage.value;
|
||||
|
||||
static kutil::no_construct<vm_area_guarded> __g_kernel_stacks_storage;
|
||||
static util::no_construct<vm_area_guarded> __g_kernel_stacks_storage;
|
||||
vm_area_guarded &g_kernel_stacks = __g_kernel_stacks_storage.value;
|
||||
|
||||
vm_area_guarded g_kernel_buffers {
|
||||
|
||||
Reference in New Issue
Block a user